SFML community forums
Help => System => Topic started by: dotty on January 22, 2012, 11:03:30 pm
-
Hay, I'm using window.GetElapsedTime() to keep my framerate consistent across multiple computers.
How would I use this to see if 10 frames have passed? So every 10 frames do something?
-
how are you using it?
2.0?
surley count the frames between?
-
Yeah 2.0 and yeah I figured that soon after I posted this!
-
With last 2.0 you need to use clock for elapsed time.
I'm not working on it, but i think we can do something like this:
Every n second/millisecond/microsecond do something...
-
Make a variable starting with 0, and at each frame add 1 on it.
When it is 10 or bigger, do what you want and subtract 10 of it.