Make label follow player

Godot Version

4.3

Question

i was working on the coin count in my mario game and i need to find a way to make the label follow the camera left and right but not up and down, first, i tried making the label a child of the player, but the it jumped, the label went up and since theb camera’s boundaries are set not to go up and down, it didnt work, then i tried using a canvaslayer and the label bcame invisible, when i set the canvas layer to follow the viewport, it became visible again, but still did not follow the camera and was stuck in place. Here is an image of my godot jus tfor refernece

When you don’t set it to follow viewport, does it become invisible? Or does it go off screen. When you created the lable scene is it anchored where you want it to be in the screen or is it at (0,0)?

Your canvas layer should not be set to follow the camera, maybe it’s Layer was too low, are you using z-index for other nodes?