Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | pion |
I have a main menu scene which uses get_tree().change_scene("res://Scenes/Game.tscn
to start the game. The “Game” scene’s root node is simply called “Game” too. It has a script attached to it containing a variable. How can I go about changing the variable’s value from the main menu script after calling get_tree().change_scene()
?