Help with move_child()

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By msalvide

I begin to learn Godot.
I don’t understand how move_child works. When the nodes are children of the root, move_chil() works as expected. But when the nodes have another parent, I am not able to use move_child correctly and I get an error. I don’t know what I’m doing wrong.
enter image description here
enter image description here
enter image description here
enter image description here

None of the above images posted correctly.

jgodfrey | 2022-02-18 03:40

:bust_in_silhouette: Reply From: Inces

Images don’t load but I suspect You force your root node to call move_child() every time. Method move_child() must be called by parent, like :

parentnode.move_child(child,place)

I’m not the ask owner, but you help me, thanks!

Covenauta | 2022-07-18 01:19