I am saving some data at the end of each level completion. If the data exists in the storage, it overwrites the data; otherwise it creates a new entry. I am using the below event sheets:
- ResetGameData: For changing the game variables to default values.
- SaveGameData : For saving the game variables
- LoadGameData: For loading the game variables.
My problem is with the data that I am saving at the end of the level with SaveGameDate. It does not update the LoadGameData event sheets unless I manually add the events. For instance, at the successful completion of each level, it successfully saves the values for the next level, but does not update the load value.
Reset game date:
Level1.Complete = 0
At the successful completion of Level 1:
Level1.Complete = 1
Level2.Complete = 0
But while loading the data, it only populates the data that has been triggered by the LoadGameData event sheet and not the new one that have been saved by SaveGameData, unless I manually add an entry to both SaveGameData and LoadGameData event sheet.
I would like to save/load data automatically in both event sheet based on the game’s progress and like to reset it (removing variables other than the default ones). The only solution that I can think of is to add ALL the values in Reset/Save/LoadGame event sheet and update them as game progress.
Does anyone know of a better solution?