RATED ARCADE
Member
My players speed is set for 4 but for my code attached I noticed that when I move diagonal (Up Left/Right & Down Left/Right), the speed is faster than 4. What can I do to adjust the code so that the speed remains the same for each position?
GML:
if keyboard_check(vk_up) && place_free(x,y-4) {y-=4}
if keyboard_check(vk_down) && place_free(x,y+4) {y+=4}
if keyboard_check(vk_right) && place_free(x+4,y) {x+=4}
if keyboard_check(vk_left) && place_free(x-4,y) {x-=4}