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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

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
247
S
85
G
40
Posts: 7,000
Reputation: 57,805


Return to How do I....?

Who is online

Users browsing this forum: newt and 23 guests