After we start out project, let's declare two variables that'll be necessary for us. I declared them as "Global" since in my game, text appears really often.
Let's call them "frame" and "limit" and set them as Unsigned Byte - we'll need them later.
Next, let's create our text-controlling object. Let's call it "Textbox".
In the object, assign these STEP actions (so that they're activated every single frame):
Loop frame from 0 to 10 //this will loop our "frame" variable from 0 to 10.
Start Block
IF frame is equal to 10 //this will cause activating the code when the loop reaches its peak point.
Start Block
Set Variable limit to limit+1 //this will add 1 to the limt variable each time 10 frames pass in-game.
Execute Code PA_BoxText(1,1,1,32,18,"Insert your text here",limit);
End Block
Wait for VBL
End Block
...and that's it! Easy, wasn't it? The only thing that's "different" from the usual set of actions found in DSGM5 is the PaLib code. I'll give you the syntax for it and explain it.
PA_BoxText(screen,basex,basey,maxx,maxy,"text",limit)
Screen - the screen you want to output to. 1 for the top, 0 for the bottom.
BaseX - the X coordinate of the left side of the "text box" (in tiles, like all other coordinates in this function)
BaseY - the Y coordinate of the top of the "textbox"
MaxX - the X coordinate of the right side of the "textbox" ends.
MaxY - the Y coordinate of the bottom of the textbox
Text - Self-explainatory. Text must be wrapped in " ".
Limit - The limit of how many characters/digits can be displayed.
The trick in this example is that each 10 frames, the "limit" variable we inputed instead of a standard digit was rising by 1, thus, the ammount of letters outputted on the screen did the same. Simple, reliable, works.
I can send the source if anyone wants it, but I think the tutorial is clear enough. Ask if you want it
~Foxi4 out!
EDIT: Code is obselete, revised version HERE: http://dsgamemaker.com/dsgmforum/viewtopic.php?f=6&t=342&start=20#p7543
EDIT2: Code above also obselete, NitroText(Final) available here: viewtopic.php?f=6&t=342&start=60#p16756
