How do I save global variable

Get help using Construct 2

Post » Sat Apr 15, 2017 1:34 pm

This post may be recurrent, but i didn't find anything right.
I want to save only glabal variable.
Construct have a feature "save and load", but everything get save, and when you load the game you are moved on the same layout where you save. I want to save my game at the end of a level and load my game during the first layout( when the game started).

I try this, but it doesn't work :/
What went wrong ?
Can we do this using another way ?
B
11
S
3
Posts: 25
Reputation: 1,110

Post » Sat Apr 15, 2017 1:44 pm

You could have an "On Layout Start" event that triggers the load, which you could then have a global that signifies what layout is to be loaded, then have an event that checks for that global that would then load that layout.
B
15
S
6
G
5
Posts: 30
Reputation: 3,652

Post » Sat Apr 15, 2017 3:42 pm

yes, that is the solution, thanks
B
11
S
3
Posts: 25
Reputation: 1,110


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests