Diagonal Walking

For a while now i have been trying to do a piece of code that, at the time, seemed simple. So basically all i want is to have “when W AND D are pressed to play the up animation”. (Also the same code for W and A and the same foe the S and A, D key only play the down animation. The same for corresponding arrow keys.) Now the first thing that i did was have W and D go into a logic gate, the the logic gate play the up animation, then when either of the keys are pressed to stop the animation. That did not work so i changed the priority. For some reason that also did not work. So I then made a piece of code that will pretty much manually change the frames. The only problem with this is it works but the the regular animations do not work.

If anyone can help me with this then that would be great. :slight_smile:

My game: https://flowlab.io/game/view/733775

I created one, I hope it might help!
My Example: https://flowlab.io/game/play/1399849