Dictionary or WebStorage

Discussion and feedback on Construct 2

Post » Wed Oct 17, 2012 6:32 am

If you are planning on exporting to mobile which of the two storage options should you be using, dictionary or webstorage? Also if you update your project to a new version will the stored data remain from the previous version? In other words will the "saved game" still be there on mobile?
B
5
S
2
G
5
Posts: 26
Reputation: 2,987

Post » Wed Oct 17, 2012 10:07 am

Webstorage. Dictionary is a way to hold data in memory, like an array. It won't store it on disk although you can save a dictionary in webstorage.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Wed Oct 17, 2012 5:39 pm

Thanks for info ramones.

I've been using WebStorage but after reading the AsJSON section under Dictionary about "saved do disk, and so on" I wasn't for sure and wanted to double check. I didn't know if WebStorage was only intended for Html5 exports, or both Html5 and Mobile.
B
5
S
2
G
5
Posts: 26
Reputation: 2,987

Post » Wed Oct 17, 2012 7:18 pm

Yeah WebStorage works the same way with CocoonJS and your data stays if you update the app.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020


Return to Construct 2 General

Who is online

Users browsing this forum: BBaller1337 and 15 guests