I am trying to make a game with one of my friends, and I am running into an issue. I do not know who to make a display a diagonal image when it moves diagonal. I can make it display an image of it going only 4 directions, up down, left, and right. I do not know if there is a way to do this. Below is a link to an image of the code I have so far. I have 8 pictures for every direction but the 4 diagonal ones are not in use as of now. Thank you
https://gyazo.com/9b8df1256dfcc955437fa3c86326df99