How to save a character into a slot from a character creator?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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.

thanks in advance

Imgur

:bust_in_silhouette: Reply From: Inces

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.