How do I check if game save exists?

Get help using Construct 2

Post » Sun Jul 13, 2014 1:37 am

How do I check if a game save exists so say a load game/continue button will load only if there has been a previous save. Compare two values I'm guessing?
B
47
S
16
G
2
Posts: 109
Reputation: 4,307

Post » Sun Jul 13, 2014 5:10 am

when you save you could use webstorage to also save a key with the save slot info, then you can check if that key exists
B
6
S
1
Posts: 51
Reputation: 502

Post » Sun Jul 13, 2014 6:51 am

Thanks yeah I got it working fine with what you recommended with Webstorage, I thought maybe there was a way to check the save slot itself with compare variable "mysave" exists or something, but it's working fine with Webstorage now.
B
47
S
16
G
2
Posts: 109
Reputation: 4,307

Post » Sun Jul 13, 2014 12:50 pm

You can make it with variables, But if the player close the browser it will be deleted.
So using Webstorage will fix this.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, Rable, TELLES0808 and 2 guests