Block Breaker game

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

1 Like


1 Like

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!

1 Like

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

1 Like

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.