Topic was automatically imported from the old Question2Answer platform.
Asked By
Lorrislehorse
Hello, i have two scenes, a character selection and a character creator scene, i want to save the character made from the creator into a slot on the the selection page, my final goal with this is to have it networked as it’s a mmorpg but for the moment something local should be cool for me to understand how it works.
If You want any variable to become global, there must always be superior structure for holding data throughout whole project. So either your creation and selection scene have to be child of one menager node, or You should use singleton ( Autoload ) which will collect data from whole scene.
Whatever You will choose, generally You will have to create some dictionary with characters stats and features while in creator scene, and when it is done You will pass this dictionary higher (to parent or autoload), close creation scene, and on character selection screens ready() dictionary will be fetched from above again and visually recreated.