How do I Make it that when I close my game, it saves coins?

Get help using Construct 2

Post » Wed Mar 23, 2016 12:03 am

I want to make it that when you close your game and open it back, the amount of coins you collected would be saved. I tried with Local Storage but the value of the coins would be stuck on zero. Help.
*Insert Signature here*
B
13
S
5
Posts: 73
Reputation: 1,090

Post » Wed Mar 23, 2016 12:07 am

Local Storage generally won't just on it's own. You have to use an array, JSON or dictionary and then save it to local storage. Or better yet, use the native save/load functions.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620


Return to How do I....?

Who is online

Users browsing this forum: MrSkailo and 23 guests