How do I Save data for further gameplay?

Get help using Construct 2

Post » Wed Jan 13, 2016 9:15 pm

Hello,

Say I am developing an HTML5 game. During game play, the player may upgrade certain stats and purchase weapons. How do I save the fact that these were bought/upgraded so that the next time they open the game they will still have all their purchases/upgrades?

Thanks,

William
B
8
Posts: 25
Reputation: 356

Post » Wed Jan 13, 2016 11:41 pm

Use the "System:Save" and "System:Load" actions for when the Layout ends and starts.

As for the upgrades, give them all a unique number and use variables. So if the player buys Upgrade 1, add 1 to "upgrade" and so on.
B
14
S
1
Posts: 65
Reputation: 732


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, R0J0hound, tarek2 and 18 guests