Sprite "drive" to pointer?

Hi,
i’m trying to use this Phaser 3 script in Phaser 2/CE

Original:

My try:

I don’t know why my method doesn’t work correctly?

Thanks!

That’s almost it :slight_smile: you just need to change to

angleDelta = game.math.wrapAngle(angleToPointer - sprite.rotation, true);
1 Like

Thank you so much!!!

1 Like

Here is another method, if you don’t need to use angular velocity:

1 Like