Save/load on multiple platforms

Get help using Construct 2

Post » Tue Jun 18, 2013 9:20 pm

I would like to save data (currently a high score but later stuff like stage-specific scores, inventory, etc) in my game, but also release it on multiple platforms. The trouble is, web apps use LocalStorage, and Win8 apps use the Win8 object, so it seems like I need to use something like this:

Create default score:
If HTML5 ...
If Win8 ...
Load:
If ...
...
Save:
...
...

Does it have to be that complicated, or is there a unified method to save/load no matter what the platform? And I'm not talking about saving/loading the game's state - I'm talking about scores and inventory and stuff.

Thanks!
B
8
S
1
Posts: 97
Reputation: 826

Post » Tue Jun 18, 2013 9:34 pm

WebStorage works on everything. You don't have to use the Windows 8 object.
B
57
S
15
G
11
Posts: 912
Reputation: 12,596

Post » Tue Jun 18, 2013 9:44 pm

Oh, awesome! Thanks!
B
8
S
1
Posts: 97
Reputation: 826


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests