# Could someone help with my code?

**URL:** <https://forum.makecode.com/t/could-someone-help-with-my-code/32703>\
**Category:** Help\
**Tags:** game\
**Created:** [December 25, 2024, 2:47pm UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703 "2024-12-25T14:47:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chedder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chedder/32/18905_2.png) [@chedder](https://forum.makecode.com/u/chedder)\
**Post date:** [December 25, 2024, 2:47pm UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703/1 "2024-12-25T14:47:51Z")

</div>

I’m trying to make is so that when the system detects when sprite image = image something will happen [https://makecode.com/\_hfwYai4H1PTT](https://makecode.com/_hfwYai4H1PTT)

 ![Screenshot_24-12-2024_205453_arcade.makecode.com](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/6/167b1d6807492bc0ed620463b6d6f58ceb886f4c.jpeg)

---

<div class="post-metadata">

**Author:** ![chedder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chedder/32/18905_2.png) [@chedder](https://forum.makecode.com/u/chedder)\
**Post date:** [December 26, 2024, 6:43am UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703/2 "2024-12-26T06:43:15Z")

</div>

wait i fixed it

---

<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:** [December 26, 2024, 6:43am UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703/3 "2024-12-26T06:43:32Z")

</div>

I’m guessing you need the image comparing block in the Image tab, not the “=“ one.

 ![IMG_6842](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/0/30180361970e1f9895164794da6f19ba6ac0aae4.jpeg)

---

<div class="post-metadata">

**Author:** ![upperalpaca2407](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/upperalpaca2407/32/35682_2.png) [@upperalpaca2407](https://forum.makecode.com/u/upperalpaca2407)\
**Post date:** [December 26, 2024, 7:00pm UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703/4 "2024-12-26T19:00:08Z")

</div>

you could do it that when you change your image it setschange to 1 and in a on game update you could add iff change = 1 it does somthing and in the on start you put set change to 0

---

<div class="post-metadata">

**Author:** ![Don](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/don/32/17989_2.png) [@Don](https://forum.makecode.com/u/Don)\
**Post date:** [December 26, 2024, 7:02pm UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703/5 "2024-12-26T19:02:51Z")

</div>

You are asking the wrong question. I would ask how to avoid comparing images? I would do something like this instead.

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

---

<div class="post-metadata">

**Author:** ![chedder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chedder/32/18905_2.png) [@chedder](https://forum.makecode.com/u/chedder)\
**Post date:** [December 31, 2024, 6:57pm UTC](https://forum.makecode.com/t/could-someone-help-with-my-code/32703/6 "2024-12-31T18:57:23Z")

</div>

could I get the share link from that screenshot?
