Everything moves when I modify the window

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

Hello people

The question I come to ask is more like a plea for help.
I guess most of the people this has happened to us

When I resize the window with the mouse the camera moves and what is the life bar and some other 2D things change position or hide

How can I make them always stay in place?


Hola gente

La pregunta que vengo a hacer es más como un pedido de auxilio.
Supongo que a la mayoría de la gente nos ha pasado esto

Cuando modifico el tamaño de la ventana con el mouse, la cámara se mueve y lo que es la barra de vida y algunas otras cosas 2D cambian de posición o se ocultan

¿Cómo puedo hacer que siempre se queden en su lugar?


:bust_in_silhouette: Reply From: AlexTheRegent

It looks like you did not setup anchors for your GUI.
Here’s few links to get you started.

Also, if you have camera, you probably need CanvasLayer (https://docs.godotengine.org/en/stable/classes/class_canvaslayer.html) node for your GUI nodes to make them unaffected by camera movement.

Thank you so much
I will try it

Kao_Shinpa | 2021-08-05 18:22