How can I save everything?

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

My game has a lot of variables that need to be saved, i wish i could save everything at once. I know i can save using packedscene, but does it save scripts that are autoloaded as a Global variable? I wish i could save the game exact how it is at the save time

:bust_in_silhouette: Reply From: ener

Hello,

there is a chapter in the docs for saving games.

As described in the docs, you can serialize your variables using JSON and save it to your disk.

cách nào chơi cùng một lúc các phần mình chơi xong .mà khi quay lại tìm lịch sữ chơi để biêt cái nào chơi không đúng, để rút kinh nghiệm cho lần sao không?

cuanhomsaigon | 2023-03-07 08:00

the problem is, i have too many variables I need to save, would be better for me if i could save a entire script and a scene at the same time. Are there a way to do this?

carlospaiva | 2023-03-07 16:10