0 votes

Basically I have a camera attatched to a kinematicbody2d (player) so that I the camera follow the player, like in normal platformer games, but I can not get the menu to be positioned in the middle of the screen (where the camera is that follows the player, does anyone know how?
Edit: I solved it by making a canvaslayer node the child of my player, then I put the pause screen inside of it as it is now a part of the player, scripts still work, and you can do the same thing with the camera, without the canvas layer of course.

in Engine by (244 points)
edited by

Can you share your tree structure? If your menu is under a control node, put it under a CanvasLayer

It's all good, i made my menu a child of a canvas layer, so it followed the player.

It would be nice if you add the anwser and select it so others see how you solved it!

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.

Categories