Issue with destroying tiles

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:

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

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?

try looking at this guys code My first game-Bomb

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.

2 Likes

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

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).

1 Like

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