How to detect a saved game in Construct2

Get help using Construct 2

Post » Thu Apr 25, 2013 2:21 pm

I want to show the user a button for loading a previous game state if he has played the game earlier. If not that button is not visible to him. How do I detect wheter the user has saved a previous game state?
B
14
S
4
G
3
Posts: 32
Reputation: 2,959

Post » Thu Apr 25, 2013 4:41 pm

If the saved Game is in webstorage you can just use the Condition "Webstorage>local Key Exists" then display your button if true
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Thu Apr 25, 2013 6:09 pm

If you save data in the WebStorage object whenever the user saves their game, you can check what save games are available later with WebStorage.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Apr 26, 2013 8:28 am

Thanx! That'll probably do it.
B
14
S
4
G
3
Posts: 32
Reputation: 2,959

Post » Sun Apr 28, 2013 1:39 am

What if you use the new save system? How would we check in that case?
B
11
S
2
G
2
Posts: 26
Reputation: 2,974

Post » Mon Apr 29, 2013 12:11 pm

I use the new save system. And I'm using the WebStorage object. And it works!
B
14
S
4
G
3
Posts: 32
Reputation: 2,959

Post » Mon Nov 03, 2014 6:27 am

@SigmundO

SigmundO wrote:I use the new save system. And I'm using the WebStorage object. And it works!


Can you please explain more how to do that? it is exactly what I need. I use the SAVE system and save to "mysave", but it doesn't look like it works as a normal webstorage object when I want to load the game.
B
5
S
1
Posts: 12
Reputation: 299

Post » Fri Oct 09, 2015 9:07 am

An old thread that i want to add something. You can use "On load failed" or "On load complete" events to check if "System load game from slot" exist.
sleep is only for the weak!
B
57
S
16
G
1
Posts: 89
Reputation: 3,698

Post » Sat Feb 13, 2016 4:12 pm

NO ANSWER(((
B
5
Posts: 10
Reputation: 249


Return to How do I....?

Who is online

Users browsing this forum: nimos100, vargazso and 20 guests