rodrigezer Posted November 29, 2013 Share Posted November 29, 2013 Helllo. This code let us dran in the vertical// This will lock the sprite so it can only be dragged horizontally, not verticallysprite.input.allowVerticalDrag = false;There is a method that allows you to drag in a circle? When you start dragging the sprite does not move but that allows you to spin in placer something likesprite.input.allowRadialDrag = true;I need drag this handle, and it drag in circle (image) Link to comment Share on other sites More sharing options...
rich Posted November 29, 2013 Share Posted November 29, 2013 Nope, but it would be relatively easy to code. The Circle object has the ability to get any point on its circumference, to which you could anchor a sprite. All the pieces are there, but the jigsaw needs assembling. shawnbless 1 Link to comment Share on other sites More sharing options...
rodrigezer Posted November 29, 2013 Author Share Posted November 29, 2013 Nope, but it would be relatively easy to code. The Circle object has the ability to get any point on its circumference, to which you could anchor a sprite. All the pieces are there, but the jigsaw needs assembling. Thank you.I do that, and works i was just wondering,maybe thera is a method Link to comment Share on other sites More sharing options...
jaevelgames Posted June 25, 2015 Share Posted June 25, 2015 Opening up old thread, but someone got a good example for this? Link to comment Share on other sites More sharing options...
Recommended Posts