# I need help with detecting sprites

**URL:** <https://forum.makecode.com/t/i-need-help-with-detecting-sprites/43679>\
**Category:** Help\
**Created:** [April 27, 2026, 4:55pm UTC](https://forum.makecode.com/t/i-need-help-with-detecting-sprites/43679 "2026-04-27T16:55:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollyleaf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hollyleaf/32/31133_2.png) [@hollyleaf](https://forum.makecode.com/u/hollyleaf)\
**Post date:** [April 27, 2026, 4:55pm UTC](https://forum.makecode.com/t/i-need-help-with-detecting-sprites/43679/1 "2026-04-27T16:55:27Z")

</div>

How would i fix this so it can only detect other sprites and not itself?

 ![Screenshot_26-4-2026_144625_arcade.makecode.com](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/3/43f27ef8509de842099f88e2d0a656933404b9ef.jpeg)

oh btw im multitasking this isnt related to carrion since i have a few ideas for this and not carrion.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [April 28, 2026, 9:13pm UTC](https://forum.makecode.com/t/i-need-help-with-detecting-sprites/43679/2 "2026-04-28T21:13:15Z")

</div>

You can add a boolean which checks if the random selected Sprite of Kind “Squidcada” is not “sprite” so the extra code does not run.

---

<div class="post-metadata">

**Author:** ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)\
**Post date:** [April 29, 2026, 12:21am UTC](https://forum.makecode.com/t/i-need-help-with-detecting-sprites/43679/3 "2026-04-29T00:21:10Z")

</div>

you could also try [https://github.com/felixtsu/pxt-sight](https://github.com/felixtsu/pxt-sight)
