0

I'm using winapi function GetTickCount() with delta time and I'm calculating the displacement of an object on screen like this:

number_Of_Pixels_To_Move_On_Screen = (speed*delta_Time)/number_Of_Pixels_Per_Milllisecond

but I get uneven movement.Sometimes it moves a litle faster ,sometimes slower .
Can someone tell me how to get the object to move at a constant rate?

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by firstPerson
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.