# How do I create a wall at a certain tile type

**URL:** <https://forum.makecode.com/t/how-do-i-create-a-wall-at-a-certain-tile-type/10763>\
**Category:** Help\
**Created:** [November 5, 2021, 4:09pm UTC](https://forum.makecode.com/t/how-do-i-create-a-wall-at-a-certain-tile-type/10763 "2021-11-05T16:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoolSwords4](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coolswords4/32/9222_2.png) [@CoolSwords4](https://forum.makecode.com/u/CoolSwords4)\
**Post date:** [November 5, 2021, 4:09pm UTC](https://forum.makecode.com/t/how-do-i-create-a-wall-at-a-certain-tile-type/10763/1 "2021-11-05T16:09:36Z")

</div>

I am making a game where you press B to toggle on and off platforms. How do I turn walls on/off at these tiles when B is pressed?

Game: [https://makecode.com/\_0HsDMRCU0cL4](https://makecode.com/_0HsDMRCU0cL4)

Note: the mechanic isn’t used until the third level.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [November 7, 2021, 4:22pm UTC](https://forum.makecode.com/t/how-do-i-create-a-wall-at-a-certain-tile-type/10763/2 "2021-11-07T16:22:17Z")

</div>

You can do this:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9a21de734fbf41e9f0c0cf387ec865ca9c778c21.png)  
and enter the wall that you want to toggle on in the “array of \_\_\_ locations” and you can change what wall you want to replace (set walll on/off) and what tile you want to change it to (set \_\_\_ at value)

---

<div class="post-metadata">

**Author:** ![CoolSwords4](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coolswords4/32/9222_2.png) [@CoolSwords4](https://forum.makecode.com/u/CoolSwords4)\
**Post date:** [November 7, 2021, 4:22pm UTC](https://forum.makecode.com/t/how-do-i-create-a-wall-at-a-certain-tile-type/10763/3 "2021-11-07T16:22:33Z")

</div>

Oops! I thought it randomly deleted my post, so I made a second one, which is this one. Don’t mind this post, thanks.
