Jump to content

sprite.input.allowVerticalDrag = false;


Recommended Posts



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 like

sprite.input.allowRadialDrag = true;

I need drag this handle, and it drag in circle (image)



Link to comment
Share on other sites

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

  • 1 year later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...