Hi! So im making a tag game, and i want to make a label show wich player is the tagger, but it doesn’t stay on the screen, it moves with the level even though ive put it on a CanvasLayer. Why does this happen?
Edit: Ive found out it only happens to labels when the text is getting changed in a script. those without changing the text (Text: Catcher) stay.
Edit #2:
so, i checkerd again, and whats really going on is its just a random label that moves with the level, no matter if its text is getting changed or not.
@magele Show a screenshot of your scene structure and any code snippets that manipulate these labels please, it’s hard to guess what going on without it.
It shouldn’t matter that you are changing the value of the Label.text in the code dynamically. You can test it by removing this piece of code from your script - the behaviour of the Label will most likely remain the same.
There has to be a parameter on the Node that is sticking its position to the global coordinates. As mentioned by @FreakyGoose - try deleting the Node and create it again, this will reset the settings to default which maybe will fix it for you.
I tried readding it, still nothing. As i said, its also happening to my other games now, so it could be a glitch in my godot version. I will try reinstalling godot and see what happens.