Jump to content
  • Advertisement
Sign in to follow this  
petelta

pausing for x seconds

This topic is 4222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know there is a function that allows you to pause the game for X amount of seconds. I can't remember what it is and can't find it. Anyone know what Im talking about? Im trying to display information but each line only 2 seconds at a time.

Share this post


Link to post
Share on other sites
Advertisement
There is no such function, not in standard C++.

There are platform-specific functions (such as Sleep() in the Windows API) that allow you to delay, but these are usually not precise timers (for example in the case of Sleep(), the amount of time you specify is only a minimum, you might be held inactive longer).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!