Guest User

Untitled

a guest
Feb 4th, 2020
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. spd = 4;
  2.  
  3. //movement
  4. yy = spd*(keyboard_check(vk_down)-keyboard_check(vk_up));
  5.  
  6. xx = spd*(keyboard_check(vk_right)-keyboard_check(vk_left));
  7. if (xx != 0)
  8. {
  9. sprite_index = sPlayerWalkRight;
  10. }
  11.  
  12. else
  13. {
  14. sprite_index = sPlayerIdle;
  15. }
Add Comment
Please, Sign In to add comment