# Creating Puzzle Guidance

**URL:** <https://forums.unrealengine.com/t/creating-puzzle-guidance/406232>\
**Category:** Community & Industry Discussion\
**Tags:** newbie, unreal-engine, puzzle, question\
**Created:** [October 5, 2017, 11:40am UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232 "2017-10-05T11:40:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d7a62290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d7a62290](https://forums.unrealengine.com/u/anonymous_user_d7a62290)\
**Post date:** [October 5, 2017, 11:40am UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232/1 "2017-10-05T11:40:40Z")

</div>

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 😃

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 5, 2017, 4:09pm UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232/2 "2017-10-05T16:09:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d7a62290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d7a62290](https://forums.unrealengine.com/u/anonymous_user_d7a62290)\
**Post date:** [October 5, 2017, 6:14pm UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232/3 "2017-10-05T18:14:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 6, 2017, 6:34am UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232/4 "2017-10-06T06:34:17Z")

</div>

Do you at least have your puzzle? Player movement?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d7a62290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d7a62290](https://forums.unrealengine.com/u/anonymous_user_d7a62290)\
**Post date:** [October 6, 2017, 9:52am UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232/5 "2017-10-06T09:52:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 6, 2017, 10:38am UTC](https://forums.unrealengine.com/t/creating-puzzle-guidance/406232/6 "2017-10-06T10:38:00Z")

</div>

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

 ![215851-boolloop.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/4/574282d484cfa1187eace1cb84a4cf34f9ea3617.png)

If you do not like loopy loops:

 ![215852-manualbool.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/5/185bd77e06b42b848345640eab13f954eb6b3e89.png)

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