How do I save data on mobile?

Get help using Construct 2

Post » Sat Nov 08, 2014 8:16 pm

I'd like to make a simple mobile game for Android and I want to save some specific data on the device (like a scoreboard or list of unlocked levels, etc..). How can I store data on phones or tablets? Should I use the Save game action or WebStorage?
B
127
S
33
G
17
Posts: 1,551
Reputation: 20,458

Post » Sat Nov 08, 2014 9:16 pm

Webstorage, you can save any variable to it, scores, levels, unlocks etc.
B
45
S
16
G
2
Posts: 107
Reputation: 4,253

Post » Sat Nov 08, 2014 9:23 pm

@glerikud

Hi, "Save game action" is not a solution for your purpose.
Yes, You can use WebStorage to save data in any mobile (like unlocked levels, high score). I have many experiences working with web-storage for mobile. There is a secondary solution, that is Cranberrygame's Phonegap WebSqlDatabase plugin. here is the link : https://www.scirra.com/forum/plugin-websqldatabase_p847916?#p847916 . I don't have many experiences with this plugin, but i am sure this plugin also can be used for your purpose.
Image
B
23
S
2
G
1
Posts: 46
Reputation: 1,087

Post » Sat Nov 08, 2014 10:35 pm

Thank you for the answers, I'll look into it when my project has a working build.
B
127
S
33
G
17
Posts: 1,551
Reputation: 20,458


Return to How do I....?

Who is online

Users browsing this forum: tarek2, wenwen11212016 and 8 guests