# Issue with destroying tiles

**URL:** <https://forum.makecode.com/t/issue-with-destroying-tiles/37117>\
**Category:** Help\
**Created:** [June 5, 2025, 2:57am UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117 "2025-06-05T02:57:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [June 5, 2025, 2:57am UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117/1 "2025-06-05T02:57:17Z")

</div>

Here, i attempt to program a bomb. 3 seconds after it is picked up, it explodes, and it is meant to destroy certain tiles that overlap with its explosion. However, it seems not to work.

Game Link:

> **[bombtest](https://arcade.makecode.com/S18937-13810-00225-24343)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Below is an image of the code that doesnt seem to work:

 ![1000054199](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/f/ef4b0337b92cad3099bd122e19efbab1f2efc2f3.jpeg)

I have tried these two approaches, wich are similar in concept, and exactly the same in execution, as neither seem to work. Any help on this?

---

<div class="post-metadata">

**Author:** ![kaleb3335](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kaleb3335/32/16382_2.png) [@kaleb3335](https://forum.makecode.com/u/kaleb3335)\
**Post date:** [June 5, 2025, 12:14pm UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117/2 "2025-06-05T12:14:21Z")

</div>

try looking at this guys code [My first game-Bomb](https://forum.makecode.com/t/my-first-game-bomb/31489)

---

<div class="post-metadata">

**Author:** ![sylvancircle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sylvancircle/32/15811_2.png) [@sylvancircle](https://forum.makecode.com/u/sylvancircle)\
**Post date:** [June 6, 2025, 4:58pm UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117/3 "2025-06-06T16:58:57Z")

</div>

In case you haven’t figured out yet, set your explosion sprite’s `ghost through walls` to `true` so it can interact with walled tiles, and the rest of your code should work as expected.

---

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [June 6, 2025, 5:59pm UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117/4 "2025-06-06T17:59:03Z")

</div>

Where can i find this “ghost through walls”? Is it a javascript feature, and if so, can it be reverted back to blocks?

---

<div class="post-metadata">

**Author:** ![sylvancircle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sylvancircle/32/15811_2.png) [@sylvancircle](https://forum.makecode.com/u/sylvancircle)\
**Post date:** [June 7, 2025, 7:16pm UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117/5 "2025-06-07T19:16:53Z")

</div>

It is a block. It’s in the `Sprites` tab, the last block under `Effects`. By default, the block says `Set mySprite auto destroy OFF`. You can change `auto destroy` to `ghost through walls` (among other settings).

---

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [June 8, 2025, 2:43am UTC](https://forum.makecode.com/t/issue-with-destroying-tiles/37117/6 "2025-06-08T02:43:29Z")

</div>

I didnt even know that block had settings. Thank you for the help!
