Hello.
I have a joystick in my game that is working with no problems.
Now, what I want to do is settling the dragging area, right now, it doesn't matter where I drag the stick, it will just follow wherever I touch.
So I want to define the stick a specific area that the stick couldn't get out of.
This is the stick
And I want it to not be able to get out of this area
But, when I'm out of this area with my finger (or mouse), I want the joystick to keep dragging the stick, so I could get the angle from the joystick virable, but the stick won't bother the player while he's dragging the stick (whenever the player is dropping the stick, he gets back to the original spot.)
Thanks!