Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ///Step Controls
  2. uKey = keyboard_check(ord('W'));
  3. dKey = keyboard_check(ord('S'));
  4. lKey = keyboard_check(ord('A'));
  5. rKey = keyboard_check(ord('D'));
  6.  
  7. if (uKey) {
  8. motion_add(90,mnv); background_hspeed[0] = bgspeed + 5}
  9. if (dKey) {
  10. motion_add(270,mnv); background_hspeed[0] = bgspeed + 5}
  11. if (lKey) {
  12. motion_add(180,brk); background_hspeed[0] = bgspeed + 5}
  13. if (rKey) {
  14. motion_add(0,acc);}
  15.  
  16. if speed > spd {speed = spd};
  17. if speed < 0 {speed = 0};
  18. if !uKey && !dKey && !lKey && !rKey && speed > 0 {speed --; direction = 0;};
  19. depth = -y;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement