Creating Puzzle Guidance

Hi, I want to create a puzzle where if you step on all 9 pads, they change color and do an action. For example opening a door etc. I have no idea how to go about this, can I have some advice or Guidance please. Thank you :smiley:

There’s half a dozen options here, at least.

The simplest one would be to create an array of 9 false bools. When the player steps on a pad, set the corresponding bool to True and loop through the array checking if they’re all True. If they’re all True → Open the door.

OKay, so i have had a look and i am totally stumped. I don’t really know where to start ahaha :smiley:

Do you at least have your puzzle? Player movement?

Yeah i have my player moving, i have it so that when the player interacts with one of the pads, it changes color, i just get confused on the whole array aspect and how to use it.

Not sure how you have it set up but see if that helps:

If you do not like loopy loops:

This is a very crude example but I hope it demonstrates the idea.