+1 vote

This question probably has a very simple answer, I just couldn't find it anywhere:

Is there a way to move a node up or down in a tree? Say, for example, you used addchild(somenode), but wanted for example an overlay node to stay above that node, without using setastoplevel() (it messes with the position).

Alternatively, is there a way to add a child in a certain position, so that the overlay would appear over the added child?

Godot version 3.2.3
in Engine by (72 points)

1 Answer

+1 vote
Best answer

The add child below node and move child functions might be useful.

by (7,190 points)
selected by

Thanks a lot! I tried addchildbelownode() before and it didn't really work out, but movechild works just fine. I wasn't aware of that function.

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.