I’m trying to set my events to where when a player has customised the settings to their liking, once they go to another scene it saves. That’s cool and all, however when I return to the settings page, the customisations would reset. How do I avoid this? Here’s a pic of my code when the scene starts.
How are you saving the settings? You’ve hardcoded the animations and volumes. You should be reading the values you’ve saved and use them instead of setting every animation to 7 and the volumes to 70 & 33.
if you save the settings into global variable you don’t reset then on scene change but you miss the data on quit game.
If you need to save the informations into the PC I suggest you to transform the variable ito JSON and save in a local file.
I would recommend storing your settings and information into a Global structure variable so it persists between scenes, then following this process to save your data so it persists between game sessions:
No, this is not saving or storing the settings.All this is doing is changing values for the scene. Once you change scenes, the animation changes are lost, and when you open the settings scene again, the default values that you set are used.
A few notes on those events :
You should check that the animation is greater than 0 before reducing it.
Put the trigger once in the same event condition as the cursor check and touch/LNB down.
You can simplify all those volume settings to one event :
Fixed it and nothing has changed The settings still reset whenever I go back to the Settings Scene. Yk what I’m leave it like that for now and focus on other aspects of my game, I’ll come back to it once I feel like it.
I still don’t understand why it resets. Thanks for the help btw
If you don’t mind, I’d rather nut this out and get it working. It’s relatively straight forward to do, so there’ll be something that’s been overlooked.
Also, in this event, the loading values appear to be done in an unconditional event, and so will get run every frame. So you can start by putting the load from storage and copy to variable actions into an “At the beginning of the scene” event :