In my game app I have moving sprites, but without them being tied to a clock they just fly across the screen. So I need help fixing my clock code so that my sprites move with the clock timer.
Sprite.Move(-1 * elapsedTime ,0);
if(elapsedTime>REFRESH_RATE){
// get current system time
GetSystemTime(&st);
if(Sprite.GetPosition().x <= 50)
{
Sprite.Move(0, 10 * elapsedTime);
} else if (Sprite.GetPosition().y == 60)
{
Sprite.Move(1 * elapsedTime,0);
}
Clock.Reset();
}