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
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

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
284
S
109
G
91
Posts: 7,317
Reputation: 87,483


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, blissfulwizard, fredriksthlm, Yahoo [Bot] and 17 guests