Save game order on another layout affecting saved objects?

Get help using Construct 2

Post » Thu Oct 09, 2014 7:07 pm

Hi all!

I have been using Construct's built in save/load game feature, but am wondering if I am doing it incorrectly.

When the player presses escape, they are brought to the pause menu, which is on a different layout, where if they press save, the game should be saved. and if they press load the game should load. However I don't think either one is happening.

If I click on save in the pause menu, and then click on back in the pause menu, the layout I was on previously will not retain the objects or their status that were there when I pushed the save button. Nothing happens when I click load.

Is this because my save/load commands are in another layout? Do I need to have the save/load commands on the same layout for them to work properly?

https://dl.dropboxusercontent.com/u/93047429/test.capx

Thanks!
Last edited by Yswellin on Sun Oct 12, 2014 3:35 pm, edited 1 time in total.
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Fri Oct 10, 2014 5:17 pm

Bump? @kyatric? @ashley? @yann? @tom? Bueller? Anyone? Anyone?
Last edited by Yswellin on Sun Oct 12, 2014 3:32 pm, edited 2 times in total.
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Sun Oct 12, 2014 1:59 am

Bump?
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Tue Oct 14, 2014 2:33 am

The standard load/save has its limitations as others will tell you, but it might be right for you.

Here's a proof of concept that could be incorporated into your game with some more fleshing out. It shows loading and saving from a separate layout. The actual loading/saving doesn't take place until back on the main layout. Run it with F4 so the main layout starts.
You do not have the required permissions to view the files attached to this post.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Tue Oct 14, 2014 3:57 pm

SPOT ON! THANK YOU!
B
16
S
3
G
3
Posts: 66
Reputation: 3,629


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests