Creating Interactive Lever
For the Hall of Mirrors section of the experience, I want both of the players to pull down a lever together at the same time to open their doors to progress through to the alleyway. So once again using some online tutorials that I followed.
I created some basic objects to resemble a lever and added some hinge points, colliders and grabbable areas to create a pull able lever that also reacts to gravity and can spring back into place after it is released.
Picking up and moving boxes
The alleyway interaction requires the players to move boxes for the other and so i decided to create 6 boxes on each side, three will be normal which the player can pick up and the others will be faded and not interactive. The key will be under one of the non interactive ones for their side so that the other player will need to move their box for them to reveal the key.
Creating the locked door and key
The key interaction is very simple, i created a lock area with a collider so that when the player picks up the key and places it in the lock, it will react to play an animation of the door opening and letting the player through to progress to the other side while also triggering some other events.
Leaving and Entering the Alleyway
when the player leaves the alleyway they will be able to walk over the collider which will trigger the other sides door allowing them to progress to the elevator section. I made it this way so that the other player couldn’t progress without first helping the other cross the gate to the other side (forcing the cooperation).