How do I save levels which have been played

Get help using Construct 2

Post » Mon Sep 14, 2015 6:17 am

pls give me any step by step guide for saving my levels game progress
.
.
i have read manual but not getting very well
.
if i want to make five slots to save i.e
save 1
save 2
save 3
save 4
save 5
then how to do this
and if i want to add name instead of save1, save2 ... , what player want, then how to do this
.
.
pls give me any solution or if possible then give any sample or demo
.
.
pls help
Image
B
65
S
40
G
46
Posts: 657
Reputation: 32,869

Post » Mon Sep 14, 2015 8:06 am

If I were you, I would start with something more simple to learn. Try just to have "one save" with only a continue button. So the player can always continue on the latest level he/she has reached.

You can save the current level reached by the player with for example webstorage.
https://www.scirra.com/manual/120/webstorage

For example:
When a level starts, save the current number of the level. You can do this with: the action "Set local value".
And when the user clicks the continue button on the start screen use: System -> Compare two values -> WebStorage -> LocalValue
B
10
S
2
G
1
Posts: 51
Reputation: 761

Post » Mon Sep 14, 2015 9:48 am

thanks friends
.
......
one thing more ...
IS all played level will be save on startup of game
Image
B
65
S
40
G
46
Posts: 657
Reputation: 32,869


Return to How do I....?

Who is online

Users browsing this forum: 25games, brunopalermo, dop2000, maranpis, oosyrag, zill and 25 guests