Archived

This topic is now archived and is closed to further replies.

needto

Implementing timers\timed game events - n00b question:)

Recommended Posts

So i have some ship flying, and i want it to turn, say, each 3 seconds. I think i need to create some timer class, but should i rewrite it for every action in the game? This has something to do with inheritance maybe... Can someone explain it to me and\or point me to some article\tutorial on that? Thanks

Share this post


Link to post
Share on other sites
Well, i know how to use getTickCount, and how to achieve frame rate independent movement, and how to create an FPS counter, but i am not sure if i understand the use of timers for game events... so an object goes here, stands for 5 secs and goes there...

Share this post


Link to post
Share on other sites