add player to the scene level
This commit is contained in:
parent
130dc27efa
commit
359da7b3a3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue