- Edited
I have a code that basically load a new scene. To do that it needs to unload the previous one but for some reason, it keeps the previous scene and also loads the new one, running both scenes.
What's wrong guys?
get_tree().get_root().remove_child(s1)
stlevel = load("res://world/level_001/level_001.tscn").instance()
get_tree().get_root().add_child(stlevel )