Alright, so I'm working on this nifty RPG I wanted to make.. everything is going good ( it's a pretty simple, adventure game.. just text, no object-orientated programming yet.) And I always wanted to know how to delay certain parts of a string display such as in the cout funtion. I will show you an example of what I am talking about, and I will split up the paragraph into numbered sentences and tell you which sentence is the one I want to delay.
1. "You entered the cave."
2. "Shining your flashlight straight ahead, you see hundreds of red eyes glaring right at you."
3. " . . . ."
4. "You realize your not alone."
Now for each sentence, the user will be pressing enter to make the next one appear. The sentence I want to delay is #3:
". . . ."
I want to delay each dot appearing about 3/4 of 1 sec. So, like this:
1 sec = ". "
2 sec = ". ."
3 sec = ". . ."
4 sec = ". . . ."
And I want it to stay all in one line.
I've tried googling this, but what I'm typing in at the search bar leads to unrelated results... any one with experience in this certain kind of programming, can you please tell me what functions this is, and where to get started?
Please and thank you !