How do I load a saved game without changing layout?

Get help using Construct 2

Post » Wed Feb 01, 2017 4:53 pm

Very simple question, however I didn't manage to find an answer: whenever I save the game and then load it from a different layout, the game jumps to the layout where the game was last saved.

What I wanted is to load the game but staying in the same layout, without jumping to the layout where the game was saved. Am I missing something and there's a simple way to do this?
B
8
S
2
Posts: 12
Reputation: 583

Post » Wed Feb 01, 2017 5:47 pm

System save will save the current state of the game, like it's a screenshot, so will jump back to the exact point where it was saved. If you're talking about loading background data then look at local storage, there's the manual and plenty of tutorials about.
B
47
S
17
G
81
Posts: 2,224
Reputation: 48,095

Post » Thu Feb 02, 2017 2:51 am

Load will always take you to the saved game layout and set variables where they were when you saved.

If you are trying to keep variables then you will need to store them in another variable and then load and reset the variables to your saved data.

If you want to load a game and then have it go to a different layout then include a command in the game to go to a specific layout. When you load just click that command and it will go to whatever layout you specified.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825

Post » Thu Feb 02, 2017 3:01 am

I made a Object with the Behavior NO-SAVE, and add a variable with the name of first layout.

Play game -> Load game
on load finished go to layout OBJECT.NAME OF THE VARIABLE.

This object is on a global layer, so every layout can load it
B
22
S
6
G
2
Posts: 82
Reputation: 3,157

Post » Sun Feb 05, 2017 7:19 pm

really good suggestions! with them I managed to make the saves work like I wanted too, thanks!
B
8
S
2
Posts: 12
Reputation: 583


Return to How do I....?

Who is online

Users browsing this forum: kainrazial and 19 guests