what i want is displaying several line of text then display another new lines of text when press enter and so on, untill the story finished.
something that like rpg story sequence.
how can i do that?, i am still newbie the only way i can think of is using nested if, and it is certainly not the very effective way especially for telling story with lots of text.
If you have the text in a file, I would just open the file and read a line from it. For every key stroke of the player I would read the next line and add it to the existing text string to be displayed. If it is null there is no more text and you can leave the text mode and return to game mode.
Or you can delay this and wait for one more keystroke to finish with the story mode.