sOlaris38
4bfd9c8491
Conflicts: objects/oPlayer/Step_0.gml objects/oPlayer/oPlayer.yy sprites/Purple/Purple.yy sprites/sSword/sSword.yy
11 lines
No EOL
422 B
Text
11 lines
No EOL
422 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; |