Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (keyboard_check(ord("A"))) || (keyboard_check(vk_left))
- {
- x -= 5
- }
- if (keyboard_check(ord("D"))) || (keyboard_check(vk_right))
- {
- x += 5
- }
- if (keyboard_check(ord("W"))) || (keyboard_check(vk_up))
- {
- y -= 5
- }
- if (keyboard_check(ord("S"))) || (keyboard_check(vk_down))
- {
- y += 5
- }
Advertisement
Add Comment
Please, Sign In to add comment