How do I…
I’m saving the level completions in my game in a structure variable. Currently, every level is inside of the structure variable.
The event that loads the Json file when the game is opened:
At the beginning of the scene →
Load “chapter1completions” from storage “SaveData” and store as text in tempJsonString
Convert JSON string “tempJsonString” and store it into variable chapter1LevelCompletions
And this is the event that saves the structure variable to a Json file when a level is completed:
Player is in collision with Flag (trigger once) →
Change the variable chapter1LevelCompletions[(levelChosen)]: set to 1
Save text GlobalVarToJSON(chapter1LevelCompletions) in “chapter1completions” of storage “SaveData”
What is the expected result
What should happen is the level is completed in the game, and when the game is closed and reopened, the level shows itself as completed.
What is the actual result
When I complete a level and return to the menu, the level shows as completed. However, when I close and reopen the game, it does not show as completed.
Thanks to anyone that can help me! (I apologize for not adding more images, I am currently only allowed to upload one)


