4
0
Fork 0
This repository has been archived on 2023-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
surprise_dungeon/objects/oPlayer/Step_0.gml
2020-12-05 12:45:29 +01:00

11 lines
No EOL
432 B
Text

keyLeft = keyboard_check(vk_left) or keyboard_check(ord("Q"));
keyRight = keyboard_check(vk_right) or keyboard_check(ord("D"));;
keyUp = keyboard_check(vk_up) or keyboard_check(ord("Z"));;
keyDown = keyboard_check(vk_down) or keyboard_check(ord("S"));;
keyAttack = keyboard_check_pressed(vk_shift);
deplaceHorizontal = keyRight - keyLeft;
deplaceVertical = keyDown - keyUp;
x += deplaceHorizontal;
y += deplaceVerticald;