How to create a sequences of pressure plates
To keep things simple, in my game level I'm going to have 5 by 5 pressure plates on the floor.
There will be 5 pressure plates (A,B,C,D,E) That need to be pressed in order to move on.
I want to make the player press them in a certain order to then be teleported to the next scene.
For example I want the pressure plates to be pressed in B,A,D,E,C order but for the rest of the pressure plates I would like them to reset the whole sequecenes (Restart the pressure plates). What is the simplest way to do this? And this is also in a 3 Dimensional plan.
Can anyone help me write the correct scripting.
Thanks in advance
Answer by Mmmpies · May 25, 2016 at 09:13 AM
What you need to do is make the touch pads use colliders/triggers you then check each time the player collides with the trigger if it's the right one from an array, if it is you move onto the next item in the array and if not move back to the first item.
The if statement should ignore the any platforms already touch in the correct order, you could use a bool to say if it's been successfully triggered.
Your answer
Follow this Question
Related Questions
Best way to simplify this code 1 Answer
Project Spark to C# - Started To, While, and No Longer 1 Answer
How to fire missiles sequentially? 0 Answers
How can I simplify a nested foreach 1 Answer