get a sprite to rotate around the center point (the player) at the angle of the mouse

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By shaggysci3

I have been trying to get a sprite to rotate around the center point (the player) at the angle of the mouse pointer.
I have gotten the angle of the player to the mouse with this code:
var degToMouse = (rad2deg(Pos.angle_to_point(MousePos)))
but do not how to make the sprite go to the angle that I found while keeping the Origin as the players location.

:bust_in_silhouette: Reply From: jgodfrey

Generally, you should be able to assign your calculated angle to the player’s rotation property (in radians) or rotation_degrees property( (in degrees).

Does that not work for you?