Hi Dylan,
I am happy you liked bonus packs!
The suggestion Stan gives is very good, but sometimes people force VSync ON/OFF in the drivers and you can't do anything about it.
Well - of course you can do, and that is use periodic function, as shows the code posted by Stan.
I slightly modified it to add 2 features:
- frame rate independent moves
- elimination of need for global variable for window handle
I present the modified script in 2 versions - "Classic" low level, and "Entity" high level.
You might notice the high level approach results in more code for simple code, but it will pay off in more complex scenes.
Petr