# Sprite destroy();

**URL:** <https://phaser.discourse.group/t/sprite-destroy/4188>\
**Category:** Phaser 3\
**Created:** [November 8, 2019, 2:18pm UTC](https://phaser.discourse.group/t/sprite-destroy/4188 "2019-11-08T14:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelous](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Angelous](https://phaser.discourse.group/u/Angelous)\
**Post date:** [November 8, 2019, 2:18pm UTC](https://phaser.discourse.group/t/sprite-destroy/4188/1 "2019-11-08T14:18:33Z")

</div>

Good morning, everyone,

for my game I have coded a basic life system and once the collision with the sprite is done I destroy it but it continues to work even after being destroyed how to fix it?

My code :

//condition for wins the health points  
if (character.x \< life.x + life.width + 33 && character.x + character.width - 33  
\> life.x && healthPoints !==3 )  
{  
healthPoints++;  
//Once time the sprite enter in collision this one is deleted of the memory  
life.destroy();  
}
