So, I have Tilemaps and a mob(creature) class derived from Sprite, and I want to load up a new random dungeon Tilemap and move that mob from the current map to the newly created map.
I can get it to work error free, but there are issues. I am removing it as a child from its parent, then I tried adding it as a child to the new map, that did not work, because afterwards the Sprite no longer functioned(ie won't update position with SetPosition(), it will 'show' the sprite, but at its old position where the old map was which I deleted with QueueFree()).
It shows it correctly attached as a child to the map.
Right now I work around it by saving my mobs and loading a new instance of them on the new map, that works fine, and is only me commenting out the previous addChild/SetOwner lines and doing the save/load. What is happening when I reparent a node that would not let it function anymore after being attached to a new node?