I am doing the following : a player runs across the screen and does something, the time is recorded, the layout is restarted and at that recorded time the player repeats that action. When I do this, there is discrepancy where the player X recorded is out by several pixels.
Does anyone have any tips on how to get an exact time for something to happen, I assume based on dt? I'm using dt but there is still some discrepancy by a number of pixels, I'd like to get it rounded up to the same whole int if possible. Note, the time IS the same, but the player X is out i.e. the action is starting earlier or later than expected by a number of pixels.