Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Step Controls
- uKey = keyboard_check(ord('W'));
- dKey = keyboard_check(ord('S'));
- lKey = keyboard_check(ord('A'));
- rKey = keyboard_check(ord('D'));
- if (uKey) {
- motion_add(90,mnv); background_hspeed[0] = bgspeed + 5}
- if (dKey) {
- motion_add(270,mnv); background_hspeed[0] = bgspeed + 5}
- if (lKey) {
- motion_add(180,brk); background_hspeed[0] = bgspeed + 5}
- if (rKey) {
- motion_add(0,acc);}
- if speed > spd {speed = spd};
- if speed < 0 {speed = 0};
- if !uKey && !dKey && !lKey && !rKey && speed > 0 {speed --; direction = 0;};
- depth = -y;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement