#Can't remove child from node

1 messages · Page 1 of 1 (latest)

errant estuary
#

I have a player node which is a child of a worldmap node for y-sorting, however, when I need to remove the child node to change the worldmap out between changing levels I can't find how to remove the player as a child from the world map.

I tried using remove_child but this deleted my player node
I tried using add_child to move the child to a different node, but this doesn't seem to transfer the node over.

I need the player node off of the world map node in order to delete the old one and transition him over to the new one, but I can't find a way to do this.
Does anyone have advice on what I'm doing wrong?
Thankyou

odd pond
#

Moving an object is done with .reparent()

errant estuary
#

Thankyou !