save and load same layout on restart?

Get help using Construct 2

Post » Sat Sep 17, 2011 3:09 pm

Hi there, with my current project, I am making a pause screen that has "restart level" as one of your options. My problem is that I have money and xp to take into account when I reload the layout... I just said MouseAndKeyboard-on object:"restart level" clicked >load "layout..." So basically, what I am asking is, if u get half way through the level and you get stuck somewhere but u have also accumulated xp and money, how do u restart the level with ONLY the money and xp u acquired in the previous levels?
Any help would be realy appreciated
B
9
S
2
G
1
Posts: 14
Reputation: 1,377

Post » Sat Sep 17, 2011 3:24 pm

Use global variables to store and compare values from previous level and current level.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968

Post » Sat Sep 17, 2011 4:34 pm

Thanks for the advice, but may I ask further and be a bother and ask u to give me an example??? Thanx in advance
B
9
S
2
G
1
Posts: 14
Reputation: 1,377

Post » Sat Sep 17, 2011 7:50 pm

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,313
Reputation: 71,094


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 50 guests