Hi guys, I've got a problem: i've got several levels in the game. At the beginning of every level the var 'progress' is assigned the value of the current level's id. This is made to be able to choose the needed level when you've finished playing. The issue example: when I'm on the 18th level the var 'progress' is assigned the value '18' but this var equals 16 in the LocalStorage. And only in 20-30 minutes the var equals 18 in the LocalStorage. How to shorten the time of assigning the correct value to the var? And what can the cause be (slow process of assigning the value)?
I don't know what method you use to store information in local storage but I have an example that stores quickly. Here it is
Try that example and see if its the speed that you like. If you have an questions don't hesitate to ask.
Develop games in your browser. Powerful, performant & highly capable.
PixelPower thank you