#How do i make a marker2D rotate around the player based on the mousse location

4 messages · Page 1 of 1 (latest)

stable current
#

I have a marker2D as a child of a character2D, i want the marker2D to rotate around the character2D so its the same distance away from the center of the charecter2D but is at the angle of the mouse

vague thorn
#

set rotation equal to get_local_mouse_position().angle()

#

call it on the character2d

stable current
#

Forgive me if I'm wrong but wouldn't that also rotate the character2D? I don't want the character2D to be rotated. I should of specified that. My bad