# On all sprites of kind

**URL:** <https://forum.makecode.com/t/on-all-sprites-of-kind/3218>\
**Category:** Help\
**Created:** [August 24, 2020, 12:03pm UTC](https://forum.makecode.com/t/on-all-sprites-of-kind/3218 "2020-08-24T12:03:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 24, 2020, 12:03pm UTC](https://forum.makecode.com/t/on-all-sprites-of-kind/3218/1 "2020-08-24T12:03:21Z")

</div>

Is there a way to say ¨On all sprites of enemy kind destroyed¨?

---

<div class="post-metadata">

**Author:** ![techahoynyc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/techahoynyc/32/1023_2.png) [@techahoynyc](https://forum.makecode.com/u/techahoynyc)\
**Post date:** [August 24, 2020, 3:25pm UTC](https://forum.makecode.com/t/on-all-sprites-of-kind/3218/2 "2020-08-24T15:25:14Z")

</div>

There is a block in the “lifecycle” section of the Sprites category that should do the trick. It reads “on destroyed sprite of kind player”.

---

<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:** [August 24, 2020, 3:44pm UTC](https://forum.makecode.com/t/on-all-sprites-of-kind/3218/3 "2020-08-24T15:44:28Z")

</div>

There isn’t an event block for what you describe. It’s a pretty common thing to check, though. This is how I typically handle it:

 ![arcade-screenshot (4)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c8243811f3081ecf11a688a35d225b7fa950ea34.png)

You also could put that logic in an `on update` loop if your sprites can be destroyed by other means (e.g. if they are destroyed when they leave the screen).
