Hi everyone,
I am trying to figure out a way to rotate a sprite in the direction of drag while being draged.
I am using the angleToPointer function and it works all right but only once when the sprite is clicked.
when I drag the sprite around it does not rotate. I guess I need something similar to this but for phaser 2?
* The Drag State of the Pointer:
*
* 0 = Not dragging anything
* 1 = Being checked if dragging
* 2 = Dragging something
*
* @name Phaser.Input.Pointer#dragState
* @type {number}
* @default 0
* @since 3.0.0
*/
this.dragState = 0;
i tried to use IsDragged but still the same. any ideas?