I tried my first game with a character moving upwards on a Screen constantly (top-down view on a Road). Now I wanted to change the character animation to a strafe based on his movement to the left or right.
Problem is: the only available input is touch. So the player is dragged left or right (and a bit up and down) to avoid random obstacles.
Is there any way to determine if a player is dragged to one side more then lets say 10 Pixel? I could not figure it out.