Any way to keep a Variable entact after Game Reset?

Lets say I have a Variable.

The first time you play the game the variable is false, so you start at the first level; then If you do a certain thing the variable is set to true, then if you reset the game the variable goes back to false, but how do I set it so after the reset the variable remains the same? So like if you reset and the variable is true you start at a different level then if it wasn’t?

Sorta like saving? I dunno…

2 Likes

There is a save extension that does exactly that. It’s called the settings extension and you can find it by clicking the extension button in the toolbox then selecting the option for said extension.

1 Like

You can use the settings extension! For whatever reason though, you cannot save booleans. Here is an example of it being used (press b to see it again):

1 Like

This is perfect for the Settings extension, which lets you save values in permanent memory. I would look at some example projects to see how to use it. Here’s one!

This feels like one of those questions that like 6 people are going to answer, but hopefully they will see that I reacted :+1: and will know that I’m answering it…

5 Likes

We should make a system of riles so whoever added a thumbs up on a question answers it so people don’t also respond

2 Likes

Yes, that’s what I was going for, though I should announce it somewhere instead of waiting for people to slowly realize…

2 Likes

Honestly I don’t think that’s necessary because sometimes people can be wrong or having multiple perspectives can be good

3 Likes