Hi guys. I have a sidescroller character setup in my game. I can control the movement and aim with the left controller stick. Example here:
So aimoffset is controlled by the sticks up and down value. Now when I try to play this on my phone, something strange happens:
if I touch anywhere on the screen while aiming with the stick, the aim of my character would snap to default angle for a moment and then back to where I want him to aim.
So it seems like touching the screen is messing with the touchstick value for some reason. Here you can see how the aim of the guy snaps to default when I am tapping the screen at any location:
Please advise how to fix this