Checking for save in r124

Get help using Construct 2

Post » Wed Apr 03, 2013 4:07 pm

My event sheet for my save/load screen looks like http://imgur.com/UdtEGm7


I would like to add another sub-event for when that save does not exist. If that is the case then I would want to send the player to the first level layout.

Any ideas on how to check if the save is there?
spartyon2013-04-03 16:11:08
B
5
S
1
G
1
Posts: 28
Reputation: 615

Post » Wed Apr 03, 2013 4:31 pm

I'll see if I can add a 'On load failed' trigger to the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Wed Apr 03, 2013 4:37 pm

That would be great, Ashley.

Any thoughts on how to deal with this in the mean time?
B
5
S
1
G
1
Posts: 28
Reputation: 615

Post » Wed Apr 03, 2013 11:50 pm

I may have found a solution. I used http://imgur.com/qqZHxD0

Just gave the Save Button a variable and made it true if the load went through.

Seems to be working, although I have to admit my game is still doing funky things so hard to be sure.
B
5
S
1
G
1
Posts: 28
Reputation: 615

Post » Mon Jun 10, 2013 3:47 am

This would really helpful for things like "Continue".

Ideally:
On Start->
If Save "Slot One" Exists->
Set Continue Text Visible
Else
Set Continue Text Invisible
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Post » Thu Jun 20, 2013 7:08 am

Has anyone else found a work around for something like this? Or a way to do it that isn't even a work around?

Not really looking for "on save load". Looking for "Save(name) exists" boolean.firebelly2013-06-20 07:09:17
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Post » Thu Aug 08, 2013 6:14 pm

Bump, I'm also interested in this.. a way to check if the save file exists, or it's empty.

I ask because in my game, if there are saves, the "load game" option shouldn't show.

Edit - Also, is there a way to clear a savestate?andreyin2013-08-08 18:26:10
B
106
S
35
G
37
Posts: 796
Reputation: 25,211


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests