Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spd = 4;
- //movement
- yy = spd*(keyboard_check(vk_down)-keyboard_check(vk_up));
- xx = spd*(keyboard_check(vk_right)-keyboard_check(vk_left));
- if (xx != 0)
- {
- sprite_index = sPlayerWalkRight;
- }
- else
- {
- sprite_index = sPlayerIdle;
- }
Add Comment
Please, Sign In to add comment