Jump to content

Rikifive

Forum Admins
  • Content Count

    5,629
  • Joined

  • Last visited

  • Days Won

    262

Image Comments posted by Rikifive


  1. That's just how Game Maker handles drawing I suppose. It redraws things each frame, so I think it's normal to have a loop, that draws each character separately.

     

    So with that having in mind; I wrote it that way, so before drawing the text, it calculates the widths and whatsoever and modifies the string, that is going to be drawn. It adds line break commands into the string. So width checking is done once; before drawing text.

     

    Now the drawing method itself - there's a variable, that keeps track of the progress. The higher the variable, the more it loops - for each character. Now if it will find, for example, "\C4" in the string, it will change the drawing color for one with ID 4 for characters past that point instead of actually typing that. At the moment I use "\B" to perform line break.

     

    INPUT:

    test_string=This is a\C1 relatively long string\C0, that will\C1 not fit \C0into a single line. It will be \C2automatically divided \C0into multiple lines based on \C3calculations \C0made in order to get the drawn word's width.\B\BThe process details are visible on the \C1poorly designed\C0, budget \C3black box to the left\C0.\B\BThere also are \C4multiple colors \C0in case you didn't notice. How fancy!\B\BNow a single word longer than the drawing area:\C1 1234567890123456789012345678901234567890123456789012345678901234567890

    OUTPUT:

    7hZzad3.gif

     

    Notice how it added "\B" to the string in initialization.

     

    In the result it's a pretty short code I suppose (about 100+ lines atm); but it's kinda confusing to come up with - not hard; it just follows some logic, but it requires some imagination and patience to configure that properly. My mind was blown few times-- until I noticed, that I accidentally made two ifs, instead of if+elsif heh. These typo-thingies are the worst. :P 


  2. oh draw_text_ext function I see; that changes things. Well, then you'd have to implement the whole system for that; It's not long, but may be confusing to work with. I thought you did that already, but now I see, that you just used that function. Hmm in that case; forget what I said.


  3. Each time a word wraps like this, one fairy dies. That's why Kayzee is sad.

     

    Seriously though, how you handle that at the moment? You made a good job already; I think at this point it would be just a matter of modifying the code a little, so that instead of wrapping in the middle of typing, it decides to wrap before drawing the word, that won't fit.

  4. Old -> New

       9

    Not a fan of Zelda games (I tried some..), but these look neat!

    I kinda also like the older ones more- these are more characteristic, even though they  have that RTP style, that I'm not a fan of either. :P 


  5. 8 hours ago, lonequeso said:

    Tis cute. Is there a snake pony in MLP or did you sin against nature?

    There are no snekpones in MLP, nor I wasn't the one arguing with nature. :P:) 

     

    4 hours ago, Rezanta said:

    Snek? Snek! SNEEEEEEEEE- *ahem* Good work! :D

     

    What, me? Why is everyone staring at me? I didn't try to make a reference, I swear!

    Thanks! :D 


  6. @Rezanta Heh, Thank you! :3

    @lone To be honest making this game would take much less time than the main project I'm working on, as it's a simpler genre to make than turn-based RPG's. But yep, I'll still be focusing on the main project first and as you have correctly noticed, I'll be able to reuse many assets for other projects, such as 'Double Pony' as well, so that itself will be encouraging.

     

    I was thinking about something like this as well as on other ponified games ~ but joking about this made me wonder even more. ^^

     

    Thanks! =)

    • Like 1
×
Top ArrowTop Arrow Highlighted