"Scene begin first time" condition or other way to make checkpoints with restarting scene

Hello!
I’m making a remake of Change Stability and I need to make checkpoints with some Scene begin first time condition because the scene needs to restart after you fall to the lava. If there isn’t any Scene begin first time condition, please (if you know how) write me how to make it.

So are you asking just restart every time you fall in the lava or only the first time you open the game and fall into the lava?

Isn’t that the “At the beginning of the scene” condition?

Or do you mean keeping track of whether it’s the first time the scene has started? In that case, use a global boolean variable, say called “IsFirstSceneRun” set to true.

Then, when you fall into the lava, just before you restart the scene, set the variable to false.

However, note that the global variable will be reset when the game is closed and opened again. If that’s an issue, then you may need to look at using storage.

1 Like