[ad_1]
Brand new 2017 Game Maker Studio: 2 Course available right now
Game Maker Tutorial Movement in 8 Direction
In this video we learn about making our player able to move in a full 8 direction. If you have any questions feel free to leave a comment and a like if this Game Maker Tutorial Movement in 8 Directions helped you.
if keyboard_check(vk_up) && place_free(x,y-5) {y-=5}
if keyboard_check(vk_down) && place_free(x,y+5) {y+=5}
if keyboard_check(vk_right) && place_free(x+5,y) {x+=5}
if keyboard_check(vk_left) && place_free(x-5,y) {x-=5}
Follow me on twitter for exclusive content and interaction with me!
Leave a Reply