Data Save

Get help using Construct 2

Post » Mon Mar 26, 2012 6:44 pm

Guys, how do I Construct the save game data? It would be necessary to use the ajax component and connect with a server language like PHP? And the house of a game for mobile using PhoneGap?
B
37
S
8
G
4
Posts: 85
Reputation: 5,099

Post » Mon Mar 26, 2012 7:03 pm

Try out the WebStorage object http://www.scirra.com/manual/120/webstorage/page-1

Local storage saves until the browser cache is cleared. On PhoneGap, however, it'll save as the app's data like any other app
B
19
S
2
Posts: 37
Reputation: 1,464

Post » Mon Mar 26, 2012 7:14 pm

But if I wanted to use the data of the player, making a record? To mount Rank or create a page with statistics? or he could play another PC?
B
37
S
8
G
4
Posts: 85
Reputation: 5,099

Post » Mon Mar 26, 2012 8:54 pm

Then ajax. It's not really possible to make a serious ranking without connecting the players and comparing their points or whatever..
B
14
S
6
G
5
Posts: 173
Reputation: 4,742

Post » Mon Mar 26, 2012 9:28 pm

And you want to save your information for the player, use the game on another pc / browser? Do not have an alternative? WebStorage not create the PHP session (for example) could get?
B
37
S
8
G
4
Posts: 85
Reputation: 5,099

Post » Mon Mar 26, 2012 9:38 pm

Webstorage saves locally on the device you use - eg phone. If you run the game later on a pc you have no access to previous local saved data on the phone.Joe72012-03-26 21:42:20
B
14
S
6
G
5
Posts: 173
Reputation: 4,742

Post » Mon Mar 26, 2012 10:27 pm

But then there is a solution for this? Some language can access the variables of WebStrorage?
B
37
S
8
G
4
Posts: 85
Reputation: 5,099


Return to How do I....?

Who is online

Users browsing this forum: Callan S, gamecorpstudio, Kagubro and 9 guests