This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
–2 votes

Created the UI and the player. But I can't see them. They are higher in the hierarchy. What to do? Thank you in advance

enter image description here

in Engine by (10 points)

This got downvoted (not by me), but I see why. First the image isn't showing but the real issue is you've not really given us anything to go on.

How about you have another crack at defining the problem so we have a chance of helping you out. Maybe include a snippet of the problem code (properly formatted please!), let us know what the node tree looks like.

You need to spell out exactly what the issue is with specifics.

No code yet. If you turn off the display of "groundNode" and "wallNode", then you can see that they are rummaged. Here are 2 screenshots, you can see everything there:

https://ibb.co/DwZdh1S
https://ibb.co/tYqsf9R

So is the UI

Sorry for bad English. I speak through a translator

1 Answer

+2 votes

The order godot renders isn't determined by the order of the nodes in the scene, but by something that is called z-index (found in the Node2D area in the inspector).
Put the player in a higher z-index and the problem should be solved for it.
As for the UI I suggest re-parenting it to a CanvasLayer node, and play around with the Layer number until you can see it.

by (110 points)

Quick note that order in the scene tree actually impact the render order: the bottom nodes will be rendered after tops. But at all you're right

Good addition :)

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.