Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. /// Move the player in the step event
  2. //Move Right
  3. if (keyboard_check(ord('D'))) {
  4. phy_position_x += spd;
  5. }
  6. // Move Up
  7. if (keyboard_check(ord('W'))) {
  8. phy_position_y -= spd;
  9. }
  10. // Move Left
  11. if (keyboard_check(ord('A'))) {
  12. phy_position_x -= spd;
  13. }
  14. // Move Down
  15. if (keyboard_check(ord('S'))) {
  16. phy_position_y += spd;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement