# Projectile sprites stay counted as sprites after lifespan ends

**URL:** <https://forum.makecode.com/t/projectile-sprites-stay-counted-as-sprites-after-lifespan-ends/41167>\
**Category:** Help\
**Tags:** game, extension\
**Created:** [December 21, 2025, 12:27am UTC](https://forum.makecode.com/t/projectile-sprites-stay-counted-as-sprites-after-lifespan-ends/41167 "2025-12-21T00:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![catto](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/catto/32/27523_2.png) [@catto](https://forum.makecode.com/u/catto)\
**Post date:** [December 21, 2025, 12:27am UTC](https://forum.makecode.com/t/projectile-sprites-stay-counted-as-sprites-after-lifespan-ends/41167/1 "2025-12-21T00:27:57Z")

</div>

hey!!! hello!!! hi!!!

i’m making a vampire survivors clone themed around soggy cat. in playtesting, i noticed that after a few minutes, the game lagged like crazy. looked into it more, and found out it was because of the projectiles you shoot.

they keep counting as sprites after their lifespan is up. why does this happen, and how do i fix it?

[link to game (i removed enemy spawns temporarily)](https://arcade.makecode.com/S37008-60620-35372-69395)  
remember to turn on sprite counter

 ![alien](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/d/6db3af5358e4924d1b19b8e4f78c44c67b8c4e6d.jpeg)

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [December 21, 2025, 12:30am UTC](https://forum.makecode.com/t/projectile-sprites-stay-counted-as-sprites-after-lifespan-ends/41167/2 "2025-12-21T00:30:30Z")

</div>

Set the projectile’s `auto destroy` flag to `true` when you create it.

---

<div class="post-metadata">

**Author:** ![catto](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/catto/32/27523_2.png) [@catto](https://forum.makecode.com/u/catto)\
**Post date:** [December 21, 2025, 6:09pm UTC](https://forum.makecode.com/t/projectile-sprites-stay-counted-as-sprites-after-lifespan-ends/41167/3 "2025-12-21T18:09:13Z")

</div>

oh thanks, i didnt know what that did. i thought it would destroy when lifespan was up
