Advertisement
Guest User

[Game Maker Studio] Creating your first game!

a guest
Apr 1st, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. /// Movements
  2. if(keyboard_check(vk_up)) { //Checks if you are pressing the up key.
  3. y -= 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
  4. }
  5. if(keyboard_check(vk_down)) { //Checks if you are pressing the down key.
  6. y += 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
  7. }
  8. if(keyboard_check(vk_left)) { //Checks if you are pressing the left key.
  9. x -= 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
  10. }
  11. if(keyboard_check(vk_right)) { //Checks if you are pressing the right key.
  12. x += 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement