make popup follow player

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

I’m trying to make a popup panel follow my player (a kinimaticbody2d) but I can’t find anything on how to do it. can anyone help?

to clarify I’m not moving my camera.

:bust_in_silhouette: Reply From: BoxyLlama

One option, would be to use global positions. Set the main popup node global_position, to the global_position of the player + any offset you need to keep it from being on top of your character.

:bust_in_silhouette: Reply From: godot_dev_

If by ‘follow’ you mean the popup remains in the same position relative to the player, then you could just add it as a child node of the player, so wherever the player goes the popup will remain on top of his head, for example.