2D
At the moment i'm using:
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);
}
But actor goes really strange sometimes it looks like he is trying to step first step again ant again instead of just going