1
Technical forum / Re: Moving actor by Keyboard?
« on: April 27, 2009, 12:31:51 PM »
I try it but it dose not work...
thank you for tring,,,
thank you for tring,,,
Forum rules - please read before posting, it can save you a lot of time.
if (Keyboard.KeyCode == VK_UP) {
actor.GoTo(actor.X, actor.Y-50);
} else if (Keyboard.KeyCode == VK_DOWN) {
actor.GoTo(actor.X, actor.Y+50);
} else if (Keyboard.KeyCode == VK_LEFT) {
actor.GoTo(actor.X-50, actor.Y);
} else if (Keyboard.KeyCode == VK_RIGHT) {
actor.GoTo(actor.X+50, actor.Y);
} else if (Keyboard.KeyCode == VK_SPACE){
actor.GoTo(actor.X+50, actor.Y+50);
} else if (Keyboard.KeyCode == VK_RIGHT + VK_DOWN){
actor.GoTo(actor.X+50, actor.Y+50);