Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time help- making a MUD

Status
Not open for further replies.

theillbehaviored

Programmer
Feb 16, 2007
2
US
Hey, im making a single player MUD and I want to make it so after the user inputs a command, the program makes a pause before a response; for example if they begin to travel to the north, I want the program to wait 5 seconds before moving them into the other room so it gives the illusion of real movement. You get the idea, please help me.

Thank you very much
 
So what exactly is your question? If you're asking how to wait for 5 seconds then use a sleep function:
Code:
sleep( 5000 ); // 5000ms
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top