Yeah, this is my question. I want store my variable when game is closed. And when game is opened, it loads previous variable. I want this.
Use local storage. Following example to showcase highscore board: dropbox.com/s/u5qjckrm57tzxic/contoh_highscore.capx
Let me see, hang on.
I didn't understand the event sheet because its a foreign language.
Ah the example utilizing array probably not what you want to deal at this moment. Local Storage basically just stored value in strings. I can give much simpler example but what you want to do with the variable? It's a string or number?
Number
Here a simple addition operation: dropbox.com/s/gyq1wurwd05fl0y/keep%20global%20var.capx
Develop games in your browser. Powerful, performant & highly capable.
Thank you! It worked.