How do I get rid of the scene that was loaded before , since it loads both scenes at the same time.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SpaceFish
 ground = (PackedScene)ResourceLoader.Load("res://NewGame.tscn/"); 
        Control newGround = ground.Instance() as Control;
        AddChild(newGround);

Works but I need thee old scene to disappear.

:bust_in_silhouette: Reply From: jgodfrey

You can remove a node from the scene tree in (at least) a few ways.

remove_child(node) - Removes the child from the scene tree, but does not delete it.

queue_free() - Queues a node for deletion.

Also, it looks like you’re using C#, so you’ll need to convert the above GDscript calls…

Thanks, got it . :slight_smile:

SpaceFish | 2020-10-23 10:47

Thanks, got it . :slight_smile:
And it worked whilst using C#
I just used .ChangeSceneTo();

SpaceFish | 2020-10-23 10:54