View Full Version : Time scalor

10-01-2000, 03:01 PM
Can anyone tell me how I can put a time scalor into the game to add to all of my animates, movements etc. I did this once before but I forgot how exactly I did it.

I think I calculated how much time as passed a given frame and used that value, multiplying it across everything.

Has someone done this before? Let me know http://www.opengl.org/discussion_boards/ubb/smile.gif


10-02-2000, 03:26 AM
You can specify all movements in units per second. Then use a timerfunction to get the time since last frame, normalize the time to one second (timervariable = 1.0 means one second, =0.2 means two tenths of a second since last frame), and multiply all movement vectors with this constant.

10-02-2000, 04:41 AM
How can I get the time in milliseconds??

10-02-2000, 07:08 AM
DWORD milliseconds = timeGetTime(); works more than well.

10-02-2000, 08:01 AM
I did this but it was extremely slow!!

10-02-2000, 09:57 PM
What was slow? Calling timeGetTime or multiplying the time factor with all movement vectors?