Detect, if game has been launched for the first time

This is for a desktop app, not a browser game:

Is there a way to detect, if a game has been launched for the very first time?

Background: Our game should reload an autosaved game state on every launch, on the first launch the game state does not exist or is empty, and thus should not be loaded.

What would be a smart way of implementing a first-launch-check in GDevelop, that works after app/electron export?

For example you want to check on title screen was game launched 1st time

So make boolean variable
If game was launched reached whatever moment you want in title screen
You check if boolean is true or false

If false you set it to true and save
And that was indication it was first run

If it was true then it means it is not first run

You just need to load that variable before that moment

1 Like