Platformer: Elevator Key & Coin Requirement

Intro

In this article, we are going to create behaviors that require the player to collect all of the coins and a key before being allow to activate the elevator button. If the player tries to activate the elevator without all of the coin and key, the elevator button will not work.

Accessing the Player Script

Checking Coin Amount

The Key

Conclusion

In the next article, we will cover the Elevator moving down when the button is pressed. Cheers!