How do I check if there is a saved game?

Get help using Construct 2

Post » Tue Apr 04, 2017 1:00 pm

Hi, I want to make a save/load system like "Dark Souls". Every X seconds I want to save the game and load it in the loading screen.

The problem is that I dont know how to check if there is a saved slot or if the game should go to the first layout. I saw old posts talking about the Webstorage system, but it seems to be deleted and no more useful. Also I don't know how to use it.

So, how can I check if there is a saved slot in the loading screen and load it if it exists?
B
6
S
2
Posts: 61
Reputation: 1,099

Post » Tue Apr 04, 2017 2:32 pm

On Start of Layout - > Local Storage - Check item exists "The name of your save file"

If Exists -> Load "Save File name"

If does exist -> Go to layout whatever
B
5
S
1
Posts: 65
Reputation: 507

Post » Tue Apr 04, 2017 2:33 pm

ErudioLtd wrote:On Start of Layout - > Local Storage - Check item exists "The name of your save file"

If Exists -> Load "Save File name"

If does exist -> Go to layout whatever



I dont have the local storage plugin. Is it external?
B
6
S
2
Posts: 61
Reputation: 1,099

Post » Tue Apr 04, 2017 2:38 pm

Nope. Just add it as an object.
B
5
S
1
Posts: 65
Reputation: 507

Post » Tue Apr 04, 2017 3:02 pm

ErudioLtd wrote:Nope. Just add it as an object.



can u give a literal example? I think I am making it harder than it really is
B
6
S
2
Posts: 61
Reputation: 1,099


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Google [Bot] and 13 guests