How to load 3 scenes one after another?

Godot Version


I created three scenes: intro, menu and game. I made it possible to skip two scenes: intro and menu. When I tried to load the third game scene I got an error:

Parent node is busy adding/removing children, remove_child() can’t be called at this time. Consider using remove_child.call_deferred(child) instead.

The code for changing the scene looks like this:

func _ready() -> void:
	if skip_scene:
func _ready() -> void:
	if skip_scene:


Is this normal behavior of Godot engine? How to bypass this error (intro and menu must be called)?

You could add a frame delay, might be a little flashy though

Use the </> button to paste code on a new line like so
type or paste code here

if skip_scene:
    await get_tree().process_frame

Thank you, it worked.