0 votes

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?


Godot version Godot Engine v3.3.1.stable.official
in Engine by (30 points)

1 Answer

+1 vote

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.

by (1,652 points)

Thank you so much
I will try it

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.