How do I make a key and opens the exit door to next level?

Get help using Construct 2

Post » Sat Jun 06, 2015 5:13 am

Basically i want to make a key and an exit door.. the key will be somewhere hidden in the level and when the key is taken by the player then only the door is opened to next level.

How to implement this /?/
please give clear instructions
B
4
Posts: 27
Reputation: 254

Post » Sat Jun 06, 2015 6:56 am

Here I also recomend you the beginner tutorial...
https://www.scirra.com/tutorials/37/beg ... t-2/page-1

Eventhough the tutorial teach you to make a different game then you have in mind, it covers the tools you need.
There is one important thing which isn't in that tutorial. You will need the system action "Go to layout".

gl!
It's time for me to return the favor :)
B
32
S
9
G
9
Posts: 132
Reputation: 5,370

Post » Sat Jun 06, 2015 7:02 am

1st create a variable with initial value of 0.
As soon as the player collects the key set the value of this variable to 1.
At the event that opens the door add a new condition to check the value of variable.

For instance:

Player on collision with door || Go to Layout
Variable = 1 ||
B
17
S
7
Posts: 277
Reputation: 2,514



Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 51 guests