Joystick scripts locks to certain angles.

Hey guys,

I’m using a Joystick script from Penelope converted by one guy to C#.

I have a problem with movement.

I’m looking from a top-down perspective.

The problem is that the script always locks the position.x and position.y to either (1,1) (45 degrees), (1,-1) (135 degrees) (diagonal axis) whenever the analog is somewhere near that point, it instantly snaps to a diagonal movement, and so I can’t move right (90 degrees), up, bottom…and so on.

Any ideas how to force the script to also snap on 90, 180 and so on? that would be (1,0) (0,-1) and so on…

Solved.
guiButtonBoundary.min.x, guiButtonBoundary.max.x

determines the boundaries. Somehow I tried it before, but now it worked, must’ve not noticed it.