Skip to main content
GameDev.net gamedev.net
🔒 Locked

Help with animation timer

Started by kingpinzs Sep 4, 2005 at 5:34 AM 1 replies 850+ views
Original Post
kingpinzs
kingpinzs
what is the best way to slow down my naimation so peole can see what is really going on? Tha animation part is easy slowing it down is the hard part [Edited by - kingpinzs on September 4, 2005 4:13:55 PM]
AsOne
AsOne
Something like this?
if (currentTime >= startTime + frameDelay){  frame++;  if (frame == maxFrames) frame = 0;  startTime = currentTime;};

For this to work you need to create a timer, and depending on what API you are using this differs on how you would go about doing creating that timer.
kingpinzs
kingpinzs
Thanks after a littl while i figured how to make the timer with your code and windows api

Thanks for your help

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.