Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Move the player in the step event
- //Move Right
- if (keyboard_check(ord('D'))) {
- phy_position_x += spd;
- }
- // Move Up
- if (keyboard_check(ord('W'))) {
- phy_position_y -= spd;
- }
- // Move Left
- if (keyboard_check(ord('A'))) {
- phy_position_x -= spd;
- }
- // Move Down
- if (keyboard_check(ord('S'))) {
- phy_position_y += spd;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement