0 votes

I have a camera2d that is zoomed in and is a a child node of my player sprite, so it follows the sprite as you walk around a large map/viewport. How would I display a GUI eg health bar over the camera view and be accurate no matter the zoom, margins, etc that I use? Like if you were replicating a 2D Zelda game with hearts on the screen, etc. Thanks.

in Engine by (151 points)

Put them under a canvaslayer node

1 Answer

+2 votes
Best answer
by (262 points)
selected by

Thanks, that was surprisingly simple.

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 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 webmaster@godotengine.org with your username.