How do I save level progress into LocalStorage faster?

Get help using Construct 2

Post » Wed Nov 23, 2016 6:12 pm

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)?
Image
B
26
S
5
Posts: 22
Reputation: 1,376

Post » Thu Nov 24, 2016 5:51 am

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

money-and-shop-system-local-storage-only-10-events-capx-file_t182196

Try that example and see if its the speed that you like. If you have an questions don't hesitate to ask.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,645

Post » Thu Nov 24, 2016 10:15 am

@PixelPower thank you
B
26
S
5
Posts: 22
Reputation: 1,376


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests