Unlocking door by getting key

So if you have seen my game Doodbot OS and looked into the NOU button and attach the click to load lvl, you will see that there is a game named Boberts House. I decided I want the door to be able to open once collecting a key. how do I do it?

1 Like

Welllllllllllllllllllllllllllllllll
In that door you place a switch in front of the click, and keep the switch to off. In the out, have it do what it would normally do. Make a mailbox called Unlock, and connect it to the On of the switch.
In the key object:
Collision (player) → destroy → message [Unlock] (to the door)

So basically, when the key collides with the player it destroys itself and sends a message to the door to unlock.

1 Like

Thank you so much lol. really needed it.

1 Like