How to update Marker2D position after rotation

Godot Version



I have a node2D as a parent of a marker2D and i am making the node2D rotate the marker2D, the problem is the position of the marker is not updating. it rotates but it still thinks its in the same pre rotation spot. how would i make it so the position is updated to the rotated position

Rotate an object doesn’t change its position, you would need to set a new value por position or global_position properties.