![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
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?
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
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?
![]() |
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.