# How to detect walls

**URL:** <https://forum.makecode.com/t/how-to-detect-walls/10376>\
**Category:** Arcade\
**Created:** [October 11, 2021, 3:53pm UTC](https://forum.makecode.com/t/how-to-detect-walls/10376 "2021-10-11T15:53:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdmueller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rdmueller/32/5088_2.png) [@rdmueller](https://forum.makecode.com/u/rdmueller)\
**Post date:** [October 11, 2021, 3:53pm UTC](https://forum.makecode.com/t/how-to-detect-walls/10376/1 "2021-10-11T15:53:15Z")

</div>

walls are a great way to mark certain tiles but I would like to query if there is a wall at a certain location. I haven’t found such a method yet.  
Only

tiles.tileAtLocationEquals(location, sprites.dungeon.floorDark2)

which is quite hard to check for all kind of tiles which could be a wall…

any suggestions?

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [October 11, 2021, 5:44pm UTC](https://forum.makecode.com/t/how-to-detect-walls/10376/2 "2021-10-11T17:44:42Z")

</div>

If you go into extensions and add

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2e1358a8e6c656b53be9bb7f3335abfb2ba25cdf.png)

then in the tilemaps section there will be a

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/dec330db79b6bdb02d9d6d39d445f800c9f83ea9.png)

(we certainly agree this is annoying / this is a block that should have been builtin in the first place that we just missed initially, so it may move to be a default block eventually)

---

<div class="post-metadata">

**Author:** ![rdmueller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rdmueller/32/5088_2.png) [@rdmueller](https://forum.makecode.com/u/rdmueller)\
**Post date:** [October 22, 2021, 4:06pm UTC](https://forum.makecode.com/t/how-to-detect-walls/10376/3 "2021-10-22T16:06:11Z")

</div>

Thank. That is what I was looking for!
