Labels and Control

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

Hi. Is there a way for labels to stay on the screen? I’m trying to make a score system, and my problem is how to handle it in a way that it stays visible on the screen. Thanks in advance

:bust_in_silhouette: Reply From: estebanmolca

You can use a CanvasLayer to keep everything separate and use the control nodes there. And remember that the child nodes of a container use their father’s space, so if you have two Labels in a VboxContainer use the size_flags / expand property in the labels to occupy all the available space and that they distribute.
Look at this tutorial, it is a simple guide, it depends on your requirements but the simpler you can keep it better:

I’ll be sure to check. Thank you very much esteban!

ddarkmoto | 2020-01-25 13:33