• 2D
  • Can't add child 'TileMap' to 'Node2D'

I have a level01 scene :

Node2D
Node2D/TileMap
Node2D/...

And a game scene :

Node2D
Node2D/...

In the _ready() game scene i do this :

var level = LEVEL_SCENE.instance()
add_child(level.get_node("TileMap"))

But i got the following error : add_child: Can't add child 'TileMap' to 'Node2D', already has a parent 'Node2D'.

I tried all possible configurations and I still have the same error Would you know what am I doing wrong?

Fixed by doing a duplicate of TileMap :

var level = LEVEL_SCENE.instance()
add_child(level.get_node("TileMap").duplicate())