I'm working on a 'quiz game' which contains a fair amount of text (introduction, questions, hints etc.) and I'd really appreciate some tips on how to stagger the appearance of the text without requiring the user to 'press any key to continue'.
As a make-do, I'm using the 'Sleep' function from the windows.h library, but I know this makes the program non-portable, as well as hearing some generally bad comments about the actual processes involved.Code:cout <<"So would you like to begin the game?\n\n"; Sleep (600); cout << "The rules of the game are very simple:\n"; Sleep (600);
Is there a more portable, less troubling version of this function? I'd like my text to appear a line at a time, or if it's possible, a letter at a time (similar to the way text often appears in modern console RPGs).
(I'm working on the same project that I was a week ago in this thread, if that matters.)