Godot Version
4.3
Question
I just started learning Godot so I’m not sure how to phrase this question. I have a node that I want to use as a checkpoint for the character to move to when the player clicks it, like so:
In my main scene, I have one checkpoint that is the destination, which has a couple child checkpoints that the character is supposed to path through, like this:
Now I want to loop over all the child checkpoints and tell the character to move to them one after the other. The thing is, if I call Checkpoint.get_children()
, it returns the texture, which is of course the checkpoints children in its own scene. But what I want is a list of all the checkpoints children in the main scene. How can I achieve this?