Set start parameter to PackedScene.
Posted: Fri Sep 01, 2023 11:11 am
I feel its an old problem of godot : https://github.com/godotengine/godot-pr ... ssues/1513
I need to send information for a scene to indicate spawner locations , ammount , etc
The func add_player is called, but when the scene loads it overwide any data in the scene and delete the information.
I saw everywhere, I mean, everybody using singletons to make this works, sorry, singleton is not a solution for me, is there a way to send information to the scene or this is just one more problem godot have and if I want to use it I need to use singletons ???
I need to send information for a scene to indicate spawner locations , ammount , etc
Code: Select all
var p:PackedScene = load( "res://Scenes/scene.tscn" )
var scene = p.instantiate()
scene.add_player( isMe , playerName , nodeId )
get_tree().change_scene_to_packed(p)
I saw everywhere, I mean, everybody using singletons to make this works, sorry, singleton is not a solution for me, is there a way to send information to the scene or this is just one more problem godot have and if I want to use it I need to use singletons ???