# How to destroy a parallax sprite?

**URL:** <https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180>\
**Category:** Help\
**Created:** [May 27, 2026, 12:01am UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180 "2026-05-27T00:01:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![strude21](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@strude21](https://forum.makecode.com/u/strude21)\
**Post date:** [May 27, 2026, 12:01am UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/1 "2026-05-27T00:01:25Z")

</div>

Hello! I am currently working on my game, and when trying to move on to the next level, the parallax sprites from the previous levels persist. Is there any way to destroy or set these sprites to invisible?

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 27, 2026, 2:21am UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/2 "2026-05-27T02:21:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/3/0374290824166ecc7c1280a450559abb8fbc7565.png)  
in this category there is a block that says destroy(mySprite)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 27, 2026, 2:33am UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/3 "2026-05-27T02:33:17Z")

</div>

Can you share your code? There is probably a way to delete them all using that “delete all sprites of kind” block.

---

<div class="post-metadata">

**Author:** ![strude21](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@strude21](https://forum.makecode.com/u/strude21)\
**Post date:** [May 27, 2026, 4:54pm UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/4 "2026-05-27T16:54:38Z")

</div>

Here we go! [https://arcade.makecode.com/S24094-04313-38272-75343](https://arcade.makecode.com/S24094-04313-38272-75343)  
The coding is very much a work in progress, but it’s Z to shoot, and to move on to the next level, you have to destroy the piles of tomatoes. There you’ll see that for some reason, the tomatoes that were parallaxed in the background from the first level persist into the second level. Also, on a side note, the death sequence is for some reason very jittery, and I’m unsure what to do about it… If you or anyone could take a look, that would mean the world to me. Thanks again!

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 27, 2026, 6:29pm UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/5 "2026-05-27T18:29:50Z")

</div>

This game is hilarious! It made me laugh many times! To “destroy” those parallax things, you can just set them to be an empty image like this:

 ![Screenshot 2026-05-27 at 2.23.29 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/f/7f2a51f55c75f5e6f34b818976152a757c55d3c7.png)  
Or you can get a bit fancy and use the “undefined” block from the Sprite Utils tab to actually remove them, which might prevent some lag:  
 ![Screenshot 2026-05-27 at 2.23.45 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/3/93706ff4034d6e3f225a2047055506a57231c372.png)  
Just make sure your “Undefined” variable is not “undefined” with the lowercase “u” or it will cause an error.

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 27, 2026, 10:52pm UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/6 "2026-05-27T22:52:46Z")

</div>

CHUD it just made me laugh

---

<div class="post-metadata">

**Author:** ![ScriptScraper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/scriptscraper/32/35438_2.png) [@ScriptScraper](https://forum.makecode.com/u/ScriptScraper)\
**Post date:** [May 28, 2026, 3:34am UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/7 "2026-05-28T03:34:20Z")

</div>

This game is peak, you should make a topic specifically for it

---

<div class="post-metadata">

**Author:** ![Cheetor11](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cheetor11/32/34643_2.png) [@Cheetor11](https://forum.makecode.com/u/Cheetor11)\
**Post date:** [May 28, 2026, 5:44pm UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/8 "2026-05-28T17:44:03Z")

</div>

The art on this is amazing!!!

it looks so cool, and the movement is really good too

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [May 28, 2026, 5:44pm UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/9 "2026-05-28T17:44:17Z")

</div>

waoh this game is amazing!! i love the art and how detailed and immersive everything is. i haven’t seen a game this polished in a long time

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 29, 2026, 4:51pm UTC](https://forum.makecode.com/t/how-to-destroy-a-parallax-sprite/44180/10 "2026-05-29T16:51:51Z")

</div>

THIS ART IS FRICKING PEAK bro I couldn’t care less about the story
