# Block Breaker game

**URL:** <https://forum.makecode.com/t/block-breaker-game/40207>\
**Category:** micro:bit\
**Tags:** game\
**Created:** [November 3, 2025, 11:22pm UTC](https://forum.makecode.com/t/block-breaker-game/40207 "2025-11-03T23:22:38Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [May 20, 2026, 4:27pm UTC](https://forum.makecode.com/t/block-breaker-game/40207/22 "2026-05-20T16:27:52Z")

</div>

That’s so odd! Could you send over the code or a screenshot of all the code involving the sprite list?

---

<div class="post-metadata">

**Author:** ![Cybercube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cybercube/32/34628_2.png) [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Post date:** [May 20, 2026, 5:03pm UTC](https://forum.makecode.com/t/block-breaker-game/40207/23 "2026-05-20T17:03:28Z")

</div>

![Screenshot 2026-05-20 094911](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/d/7d9d976c39eddfbb187764924565666bfe0748be.png)  
 ![Screenshot 2026-05-20 094922](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/6/b637488b9dfa4a04f271700ee7615f2cf442f1af.png)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [May 21, 2026, 12:23am UTC](https://forum.makecode.com/t/block-breaker-game/40207/24 "2026-05-21T00:23:06Z")

</div>

I think I know what’s wrong— You need to run the ‘destroy sprite’ block before you remove it from the array. If you remove it from the array, then the destroy sprite block can’t find it in the array, so it can’t actually be destroyed!

---

<div class="post-metadata">

**Author:** ![Cybercube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cybercube/32/34628_2.png) [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Post date:** [May 21, 2026, 3:40pm UTC](https://forum.makecode.com/t/block-breaker-game/40207/25 "2026-05-21T15:40:31Z")

</div>

okay i did what you said but it didn’t work.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [May 21, 2026, 7:25pm UTC](https://forum.makecode.com/t/block-breaker-game/40207/26 "2026-05-21T19:25:14Z")

</div>

Hmmm… maybe you should save ‘blocks index of value’ as a number, then when you’re deleting the sprite and removing it from the array, use that value. The issue could be that after the sprite is deleted, the ‘remove value at’ block can’t index it in the array correctly.

[Previous page](https://forum.makecode.com/t/block-breaker-game/40207.md?page=1)
