# 𝐡𝐞𝐥𝐩 𝐰𝐢𝐭𝐡 𝐬𝐩𝐫𝐢𝐭𝐞𝐬

**URL:** https://forum.makecode.com/t/topic/36554
**Category:** Help
**Tags:** game
**Created:** [May 10, 2025, 6:14pm UTC](https://forum.makecode.com/t/topic/36554 "2025-05-10T18:14:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Oblivious](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/oblivious/32/30718_2.png) [@Oblivious](https://forum.makecode.com/u/Oblivious)
#### Post date: [May 10, 2025, 6:14pm UTC](https://forum.makecode.com/t/topic/36554/1 "2025-05-10T18:14:37Z")

</div>

𝐈 𝐧𝐞𝐞𝐝 𝐡𝐞𝐥𝐩 𝐰𝐢𝐭𝐡 𝐬𝐨𝐦𝐞 𝐟𝐞𝐚𝐭𝐮𝐫𝐞𝐬 𝐢𝐧 𝐦𝐞 𝐚𝐧𝐝 @Skittlesaersuper '𝐬 𝐠𝐚𝐦𝐞 𝐰𝐞’𝐫𝐞 𝐦𝐚𝐤𝐢𝐧𝐠,  
𝐒𝐨 𝐲𝐨𝐮𝐫 𝐚𝐛𝐥𝐞 𝐭𝐨 𝐥𝐨𝐨𝐤 𝐚𝐫𝐨𝐮𝐧𝐝 𝐚 𝐜𝐢𝐭𝐲 𝐚𝐧𝐝 𝐬𝐭𝐮𝐟𝐟, 𝐛𝐮𝐭 𝐈 𝐰𝐚𝐧𝐭 𝐢𝐭 𝐬𝐨 𝐰𝐡𝐞𝐧 𝐲𝐨𝐮 𝐡𝐨𝐯𝐞𝐫 𝐨𝐯𝐞𝐫 𝐚 𝐛𝐮𝐢𝐥𝐝𝐢𝐧𝐠, 𝐢𝐭 𝐡𝐢𝐠𝐡𝐥𝐢𝐠𝐡𝐭𝐬, (𝐍𝐨𝐭𝐞 𝐭𝐡𝐚𝐭 𝐭𝐡𝐞 𝐛𝐮𝐢𝐥𝐝𝐢𝐧𝐠𝐬 𝐚𝐫𝐞 𝐬𝐩𝐫𝐢𝐭𝐞𝐬) 𝐚𝐧𝐝 𝐰𝐡𝐞𝐧 𝐲𝐨𝐮 𝐬𝐭𝐨𝐩 𝐡𝐨𝐯𝐞𝐫𝐢𝐧𝐠 𝐨𝐯𝐞𝐫 𝐢𝐭, 𝐢𝐭 𝐰𝐢𝐥𝐥 𝐬𝐭𝐨𝐩 𝐡𝐢𝐠𝐡𝐥𝐢𝐠𝐡𝐭𝐢𝐧𝐠. (𝐒𝐨 𝐛𝐚𝐬𝐢𝐜𝐚𝐥𝐥𝐲: 𝐨𝐯𝐞𝐫𝐥𝐚𝐩 𝐰𝐢𝐭𝐡 𝐛𝐮𝐢𝐥𝐝𝐢𝐧𝐠-\> 𝐡𝐢𝐠𝐡𝐥𝐢𝐠𝐡𝐭, 𝐬𝐭𝐨𝐩 𝐨𝐯𝐞𝐫𝐥𝐚𝐩𝐩𝐢𝐧𝐠 → 𝐒𝐭𝐨𝐩 𝐡𝐢𝐠𝐡𝐥𝐢𝐠𝐡𝐭𝐢𝐧𝐠)

𝐖𝐡𝐚𝐭 𝐰𝐨𝐮𝐥𝐝 𝐈 𝐝𝐨?

---

<div class="post-metadata">

### Author: ![swirlix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/swirlix/32/34857_2.png) [@swirlix](https://forum.makecode.com/u/swirlix)
#### Post date: [May 10, 2025, 6:40pm UTC](https://forum.makecode.com/t/topic/36554/2 "2025-05-10T18:40:49Z")

</div>

You can make a new sprite image that it changes to if it is hovering over, and you can check if its hovering over with the _on sprite of kind player update every 500ms_ block from sprite utils.

---

<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: [May 10, 2025, 9:06pm UTC](https://forum.makecode.com/t/topic/36554/3 "2025-05-10T21:06:46Z")

</div>

I know it’s possible to procedurally outline images, but having a separate image for each is a much less logic+math way of doing it if those things aren’t your strong suit.

For detecting the cursor on the sprite, the simplest way is to save the cursor X/Y in some variables inside every “on mouse move” event and “on mouse click” event and use those to highlight the building if the saved cursor position x is larger than the building left, and smaller than the building right, and y is greater than the building top, and less than the bottom.

That will give you a square around each building that counts as touching, but if you need more precise than that, you could try making a single pixel sprite that is set to the cursor position and use Richard’s `Riknoll/arcade-sprite-events` extension. This extension adds an “on sprite _stops_ overlapping othersprite” block, which would be perfect for more precise overlap control. Imo, having an extra sprite following the cursor around doesn’t look nearly as good as using the cursor without a sprite, but you can decide that for yourself!

---

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [May 10, 2025, 10:06pm UTC](https://forum.makecode.com/t/topic/36554/4 "2025-05-10T22:06:15Z")

</div>

I placed a selector sprite on top of the tile

 ![Screenshot 2025-05-11 at 07.14.40](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/f/5f68baacda7d82a257faa99774be79048f586ee7.png)
