0 votes

To add more to the question, I have a Dialogue Box scene and I instantiate it when I speak to NPCs, my question is where and how do I position this Dialogue Box? I tried using getcamerascreen_center() and it was successful to a degree. If I move around the place while the Dialogue Box is open, my guess is that in an effort to keep up with the screen center, the instance jitters like crazy, the same thing happens if I set the position equal to the player.

Basically, is there a function similar to GameMaker's 'Draw GUI' event? Where things drawn in that event are drawn directly to the screen and not to the game, if that makes any sense.

Thanks.

in Engine by (22 points)

Hi Ricardo

Godot has a node that will help you with that, to add all that static content on the camera like the HUD / GUI, that node is called CanvasLayer, this will allow you if your character moves along with the camera, these elements do not move and you can sort them by layers.

Please log in or register to answer this question.

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.