Hi,
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
[attachment=1:3kcrk8c8][/attachment:3kcrk8c8]
Here is the capx file
[attachment=0:3kcrk8c8][/attachment:3kcrk8c8]
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!