How do I show level after level completion

Get help using Construct 2

Post » Sat May 10, 2014 3:52 am

Once the player completes the level I want the next level access button to show on the level select screen, but the level select screen is on another layout.

How would I go about doing this?

thanks for your help
B
5
S
2
Posts: 105
Reputation: 837

Post » Sat May 10, 2014 7:04 am

With the simple Action System > Go to Layout ?

Also, you may use global variable. For example, make a variable "Level1Completed", When the player finish the level 1, set Level1Completed value to 1 then go to the level select Layout.
Here add an Event: If Level1Completed make the button appear...
B
15
S
4
Posts: 57
Reputation: 1,792

Post » Mon May 12, 2014 2:52 pm

Ah ok that is how I would of done it but didn't think using an action in one layout would effect another layout.
B
5
S
2
Posts: 105
Reputation: 837

Post » Tue May 13, 2014 3:47 pm

This is the function of global variable :)
B
15
S
4
Posts: 57
Reputation: 1,792

Post » Wed May 14, 2014 12:14 am

oh my, now I see what you mean I don't know what I was thinking... I think I was looking at it wrong.

thanks for your help, very much appreciated.
B
5
S
2
Posts: 105
Reputation: 837

Post » Thu May 22, 2014 3:34 pm

I have made the level select screen using individual sprites rather than an array, but was wondering using the above advice how I can save the progress of the gamer i.e- Level unlocks using webstorage.

At the moment I have it set so once the player completes a level a global variable called win1 is set to 1 and it makes the second level icon unlocked, but when I restart the game it all resets back to default.
B
5
S
2
Posts: 105
Reputation: 837


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, mcscooter, TRMG and 22 guests