I want to save a global variable so that when the game loads the high score from the previous time you opened the game is still there? surely I can do this without any online stuff
Develop games in your browser. Powerful, performant & highly capable.
You need to use webstorage. I save a game highscore there.
If I were to give you my capx file or show you my code, could you tell me how to do? Regardless of how I try it doesn't work :/
DylanBannan, please don't start multiple threads with the same request - you currently have 3 requesting help for web storage, all started within an hour of each other.
Have you searched the tutorials?
DylanBannan I don't want to edit your .capx. But i can take a several sscreenshot of my work.
at start of the game it trying to see, variable best in webstorage exist? If no, they set it.
And next, they compare score with bestscore.
Check this: scirra.com/manual/120/webstorage