From 359da7b3a398f24431049e440489633cc0665901 Mon Sep 17 00:00:00 2001 From: Lucas Peter Date: Fri, 26 Jul 2024 11:51:34 +0200 Subject: [PATCH] add player to the scene level --- core/sceneInstance.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sceneInstance.gd b/core/sceneInstance.gd index e61b1ff..1115af1 100644 --- a/core/sceneInstance.gd +++ b/core/sceneInstance.gd @@ -24,7 +24,7 @@ func transition_to_scene(new_scene: PackedScene, spawn_location = Vector2(0,0), if (InitialPlayer): player = InitialPlayer.instantiate() player.set_name("player") - add_child(player) + current_scene.get_child(0).add_child(player) else: printerr("No Initial player found") #endregion