nokizorque

Untitled

May 22nd, 2015
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. if (keyboard_check(ord("A"))) || (keyboard_check(vk_left))
  2. {
  3. x -= 5
  4. }
  5.  
  6. if (keyboard_check(ord("D"))) || (keyboard_check(vk_right))
  7. {
  8. x += 5
  9. }
  10.  
  11. if (keyboard_check(ord("W"))) || (keyboard_check(vk_up))
  12. {
  13. y -= 5
  14. }
  15.  
  16. if (keyboard_check(ord("S"))) || (keyboard_check(vk_down))
  17. {
  18. y += 5
  19. }
Advertisement
Add Comment
Please, Sign In to add comment