Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
When my game is running my levels get unlocked just fine even if I switch between layouts such as main menu, howto play etc whenever I goto level selection layout all the level I have unlocked are there but when I exit my game and re open it my levels are locked again?
When the game is reatarted all variables are set back to their original value, it's like starting the game for the first time..
To "solve" this you should use local storage and/or savegames to store the state the game is in..
I'm using webstorage but how do I check if my key exist after I restart LittleStain
Develop games in your browser. Powerful, performant & highly capable.
If you are using webstorage, you use the condition: webstorage key exists
If you are using local storage you use the action: check item exists
LittleStain if webstorage key exists than what action to load it?