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.
It’s about this example: Circular pong - a game example from the GDevelop game making app | GDevelop
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.
Just an example, again I’m no expert and not really sure this was what you were after when you said sessions, so hope it helps you figure it out.
I got my highscore up to 5.
It worked! Thank you very much!) I’ve been trying for a few days) I’m just starting to develop my first games) Thank you for helping.