This is a guide showing Gimkit users how to make a randomized door opener!
You will need:
- Button (1)
- Trigger (As many as you have doors)
- Barriers/Props [To act as the doors] (As many as you want!)
[DISCLAIMER: In this tutorial, we will be working with 3 doors.]
First, make a contraption like this:
(Make sure the trigger cannot be visible in game or be triggered by collision)
Go into the trigger and select blocks. Make a setup like this:
You can add as many random integers as you want, to mach the number of doors. Just make sure you have it set up correctly.
Next add your other triggers and make sure they get triggered when they recieve channel R1, R2 and R3
Add more triggers if you want to have more doors, but make sure that they are continuing after R3.
Add your barriers/props (Preferably in a small size so they are easier to work with. You can reshape them later).
By now you should have a setup similar to this.
Next connect wires from your triggers to your barriers/props (This will look messy!).
How to do it:
- Take one of your triggers and make it deactivate ONE of the barriers/props
- make the trigger deactivate the rest.
- repeat this for all of the triggers (make sure that no two triggers are deactivating the same barrier, unless you want that barrier a higher chance of opening.)
It should look like this:
(Checkpoint!)
Now try it out! If set up correctly, each time you press the button, one of the barriers will deactivate, and the others will activate. Congrats! You are most of the way there!
Finally, shape the barriers into whatever way you like, and create a fun level with them!
[OPTIONAL]
Take one more trigger and put it anywhere.
Make the trigger delayed (optional time. At least 1 second)
put a wire repeater next to the trigger and hook. it up
make all the other triggers connect to the wire repeater
make the delayed trigger connect to ALL of the doors and make them ACTIVATE.
Now your doors will automatically close!
My final product looked like this:
(had to make the barriers smaller so they would all show.)
Congratulations! You have made it all the way! I hope you enjoyed this tutorial and I hope you have a useful way to implement it into a cool game!