Oh, that's easy - it does require some C knowledge.
Text is stored in Strings so it's relatively easy to determine their lenght using the strlen function:
http://www.cplusplus.com/reference/clib ... ng/strlen/Knowing this, you know exactly when the character stops talking - when the last character is printed.
PA_SimpleBoxText(Screen, "Text", Limit) is quite handy here since it returns the ammount of printed characters.
How to use this knowledge? Time for some coding, starting from Step:
- Code: Select all
if(Print==true){
if(PA_SimpleBoxText(1, String, Limit)==strlen(String)){
Print==false;
}
}
What does it mean? Well, if boolean Print is equal to true, text is printed into the pre-inited Text Box until the number of letters returned is equal to the size of the string, then printing ends.
Now, how to start printing another thing? Well, that's also easy!
- Code: Select all
if(Pad.Newpress.A && Print==false){
free(String);
String=NULL;
String="New Text";
Print=true;
}
...if you press the A button and there is no text currently being printed, a new text is assigned to the String. You can automate it using NitroText and load the string from a text file with ease, making printing even tidier!
Remember to initialize the box! PA_InitTextBorders (u8 screen, u8 x1, u8 y1, u8 x2, u8 y2)!
Of course this is just one way of doing it, it's best to play around a bit and think of your own method.

Refer to my TextBox Tutorials by the way, you may find alot of interesting snippets, both in NitroText and in the standard TextBox code.
