I want to built a kind of a joystick to move my player.
I have created to sprites, one is the dragable stick and the second is the area where the joystick should be movable (horizontally only).
Joystick with area
Here is the capx file
Do anybody know how to bound the dragable element on the sprite area? So it can only be dragged to the edges of the area sprite?
And if it's dragged to the left, the player should move left. If it's dragged right, he should move right.
Thanks for your help!