I am attempting to make a top-down 4-directional sprite. The issue I have is when I "touch" the screen the sprite will correctly change animation on either the X or Y axis but not both.
It seems that when I click anywhere on the screen the animations begin to compete for each other and nothing plays.
Below is a screenshot of the code.
Please tell me how I can simplify or fix this.
gyazo.com/2133c20762ce44ca246f2fdae85a4a45