0 votes

I understand that the entertree() function is called when a node enters the scene tree and while this node is inside the tree, the child nodes of this node have not yet entered the active scene. While of the ready() function I understand that it is called after the call to the _entertree() function and ensures that all child nodes have entered the scene tree. The thing I want to understand more though, is the scene "active" when I press "play"? And then the root node of a scene enters the scene tree when play starts? Could you please clarify these concepts for me? I'm a bit confused about this

Godot version 3.2.3
in Engine by (54 points)

You've also managed to confuse with your confusion.
When you say "active" what do you mean?

The scene tree follows the basic point tree structure and is Traversed as Root > Parent > Child > Leaf

Consider the following

for node in sceneTree:
    node.init()

for node in sceneTree:
    node.enter_tree()

for node in sceneTree:
    node.ready()

If you want it to operate in a different way you can also write your own main_loop

I didn't understand it the way you didn't. I actually read from here: the overridable functions
https://docs.godotengine.org/en/stable/getting_started/step_by_step/scripting_continued.html#overridable-functions

What is it exactly that you are trying to accomplish?

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 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.