Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Movements
- if(keyboard_check(vk_up)) { //Checks if you are pressing the up key.
- y -= 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
- }
- if(keyboard_check(vk_down)) { //Checks if you are pressing the down key.
- y += 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
- }
- if(keyboard_check(vk_left)) { //Checks if you are pressing the left key.
- x -= 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
- }
- if(keyboard_check(vk_right)) { //Checks if you are pressing the right key.
- x += 5; //This is how fast your player will move.. Try making the number diffrent to make the speed faster or slower.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement