---------------Webstorage------------------

Get help using Construct 2

Post » Thu Mar 07, 2013 4:01 pm

Situation:

I create an event that when the game finish, set a local key "SCORE" to the score you get on the game...etc.

The question:
Everytime that I set a local key to the same key is going to overwrite that data? I mean, the data will not increase on size?trotomox2013-03-07 16:04:31
B
4
S
1
Posts: 3
Reputation: 701

Post » Thu Mar 07, 2013 4:08 pm

yes it will overwrite
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Thu Mar 07, 2013 4:18 pm

Yep. To add to the score you can set the key to itself + a number. Alternatively you can store data in a dictionary or array since it's more manageable, and then save the whole thing to a webstorage key.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Thu Mar 07, 2013 4:20 pm

Yeah but is more like an highscore process, it's only going to be saved when the score is higher than the last one submitted!

Thank you guys, and other thing... so the webstore quota exceeded only going to happen when you got a lots of differents key saved and reach the 5MB limit? trotomox2013-03-07 16:24:34
B
4
S
1
Posts: 3
Reputation: 701


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, Naightwolf, RookieDev, Skebab, Swivels and 22 guests