# Yo is there an extension that has a Boolean that senses if a sprite touches a color?

**URL:** <https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075>\
**Category:** Help\
**Tags:** extension\
**Created:** [March 31, 2025, 10:40pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075 "2025-03-31T22:40:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOOC8](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gooc8/32/20432_2.png) [@GOOC8](https://forum.makecode.com/u/GOOC8)\
**Post date:** [March 31, 2025, 10:40pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/1 "2025-03-31T22:40:03Z")

</div>

Like seriously can someone reply soon?  
I would love that

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [March 31, 2025, 11:18pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/2 "2025-03-31T23:18:58Z")

</div>

As far as I know no but why do you need this I can help better if you tell me specifically why

---

<div class="post-metadata">

**Author:** ![spacemakecodenugget](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/spacemakecodenugget/32/21009_2.png) [@spacemakecodenugget](https://forum.makecode.com/u/spacemakecodenugget)\
**Post date:** [April 1, 2025, 12:06am UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/3 "2025-04-01T00:06:09Z")

</div>

likely so you can have different looking tiles that do the same thing  
probably not thought

---

<div class="post-metadata">

**Author:** ![GOOC8](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gooc8/32/20432_2.png) [@GOOC8](https://forum.makecode.com/u/GOOC8)\
**Post date:** [April 1, 2025, 5:14pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/4 "2025-04-01T17:14:41Z")

</div>

Eh, just it would be helpful for the game I’m making

---

<div class="post-metadata">

**Author:** ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)\
**Post date:** [April 1, 2025, 5:17pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/5 "2025-04-01T17:17:55Z")

</div>

spacemakecodenugget is right. There aren’t any extensions that do that currently. Maybe in the future though.

Also, Welcome to the community @spacemakecodenugget!

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [April 1, 2025, 5:18pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/6 "2025-04-01T17:18:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/6/e6e1e5ee7a0bb2ec865addc86d702755c2282200.png)

here try something like this (change for the color index you want and the sprites position)

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [April 1, 2025, 5:18pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/7 "2025-04-01T17:18:25Z")

</div>

Sorry, not a color specifically but you could detect if it touches a certain sprite or tile. Let me know if you need help doing this!

---

<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:** [April 1, 2025, 5:18pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/8 "2025-04-01T17:18:54Z")

</div>

There isn’t a built in function, but there are image blocks for detecting the color of a pixel in an image, so you could code this yourself!

---

<div class="post-metadata">

**Author:** ![MR.CODDER](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr.codder/32/20850_2.png) [@MR.CODDER](https://forum.makecode.com/u/MR.CODDER)\
**Post date:** [April 1, 2025, 5:43pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/9 "2025-04-01T17:43:38Z")

</div>

Hey, welcome to the community @spacemakecodenugget

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [March 11, 2026, 8:24pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/10 "2026-03-11T20:24:13Z")

</div>

this is the game link

> **[Fish Game - UNFINISHED](https://arcade.makecode.com/S63867-06572-30484-77314)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [March 11, 2026, 8:24pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/11 "2026-03-11T20:24:18Z")

</div>

i have a similar question.  
Is there a way to detect if a sprite has a certain color in its image and return a boolean?  
Like a “If ‘image’ has color 1 then …” kinda deal  
this is the code i have so far

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/c/ccc345966162bbb6ab0f3cdfc5e33627453d0157.png)

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [March 12, 2026, 9:15pm UTC](https://forum.makecode.com/t/yo-is-there-an-extension-that-has-a-boolean-that-senses-if-a-sprite-touches-a-color/35075/12 "2026-03-12T21:15:11Z")

</div>

i figured something out

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/a/1ae5bf4ba08a8d4799015f631ca5c85742b239db.png)

> **[Fish Game - UNFINISHED](https://arcade.makecode.com/56053-61577-70123-93838)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
