How do I save player data externally

Get help using Construct 2

Post » Tue Nov 22, 2016 8:02 pm

Hi,

I am making a game and it uses a coin system to buy other characters that the player can use to play the game (like a character shop).
I would like the variable that stores the quantity of the coins to be stored externally.
I am familiarized with localstorage but using this method if the player formats or changes cellphones that info would be lost.
Is there a way to store that kind of info on the cloud?.
I saw in other posts/tutorials that the recommendation was to use rex's plugin to make a login system but I would like to use googleplay account to log in the players to my app so its as most transparent as possible for the player (not typing User and Password).

The stored info would look like this:
Playername: GoogleID
Coins: variable quantity of coins
MaxStageReached: variable


I hope the post is understood correctly, otherwise feel free to ask for clarifications :D
B
18
S
6
G
1
Posts: 20
Reputation: 1,795

Post » Tue Nov 22, 2016 11:24 pm

If you are using IAP's Google Play will keep track of the purchases, i do believe.

Google "restoring purchases in construct 2" and/or "restoring purchases Google Play"
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Nov 23, 2016 12:10 pm

Oh, thanks @jeffige , I did not know that about IAPs that could be restored.

Unfortunately, I am not planning to use IAPs, the coins in the game are gathered by playing the stages only. That is the info I would like to save externally and without using a custom login system
B
18
S
6
G
1
Posts: 20
Reputation: 1,795

Post » Wed Nov 23, 2016 3:15 pm

Ah, so it's like a Mario game, in only that you are collecting coins, not purchasing them.

Then take a look at this. It's a tutorial on saving high scores using a website, but the info could prove useful.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Nov 23, 2016 5:21 pm

Great!!! Thank you very much!
That tutorial seems really helpful. I am gonna try it.
B
18
S
6
G
1
Posts: 20
Reputation: 1,795


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, SputnikCZ and 3 guests