I am writing a program for my friend on his birthday, and in the beginning it looks like Glados (play portal-its a robot) overrides my code. Is there a way to put a wait function or something like that that will make it look like I am conversing with Glados. For instance, I say something, it waits five seconds, then Glados' words appear on the screen. Also, is there a way to make it so the users don't have to press enter after entering input?
Here's a pretty basic 5 second count example, though you'll need to adapt it to your own needs (I'm in the middle of some messy OpenGL stuff right now, so I knocked this up kinda quick).
Might want to add some validation to make sure you don't pass negative numbers into the function (you'll have like a 4 billion second wait otherwise!). That said, it seems to be for a basic, one-off thing so I wouldn't worry too much.