Hello everyone. How do I keep the record in the next game sessions? The following guide shows how to do it through a scene variable. It doesn’t work for me. Is there another way? Maybe you need a global variable? Help please. Preferably with a screenshot.
From what I understand you: find a spot in the game you want to trigger a save, or use a key or button for it. Then If you’re writing a global variable it’s ok but when you’re reading it, you just read it to a temporary scene variable (which you can make up right there no need for already existing), then you set your global variable to that scene variable value.
I’m no expert by any means, so this is just an example. I threw this up here to check for existing storage and then overwrite to a scene variable and then set your global variable to that.
And here I just threw it in to write the storage cuz I like games that autosave but you can make a save button or do one if the mouse is on the x to close the game etc.