How to rotate a sprite at its center

How to rotate a sprite along its center point even when we have its anchor property not set as 0.5 but some other value.
Without changing its anchor back to 0.5 , is there any way we can rotate it at its center point.

Changing or not the anchor depends on how you code the rotation, so if you want to use the built in functions of Phaser to rotate a sprite in a simple way you have to change the anchor to 0.5 like in this example

When testing it doesn’t work

1 Like

You can try adjusting pivot.

1 Like

Perhaps another possibility is to make it the child of another object with the anchor in the place you want (the center of the child), then rotate the parent?