The player getting a weapon depending on what he chooses

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Godot_coding

So in the menu of the game i have a menu to choose the weapon you want. How can the scene have the weapon the player chooses though?

:bust_in_silhouette: Reply From: Inces

Menu screen and game scene must be lower in hierarchy than some kind of managing script, that holds transferable data between scenes. Most of the times Autoload scripts are used for this. Choosing weapon in menu updates variable in Autoload, loading a game scene reads this variable.