PDA

View Full Version : How to move an object using the arrow keys



10-27-2003, 10:56 AM
I am trying to move an object in the direction it is pointing, which happens to be an asteroid, around the screen using the arrow keys. I am using translation and rotaion to do this. ( I believe there is some math involved here, the direction times the speed, then translate to that value.)

Leyder Dylan
10-27-2003, 11:32 AM
if (keys[VK_UP]) Move Forward ...
if (keys[VK_DOWN]) Move backward ...