# I just can't figure out the solution ;(

**URL:** <https://forum.makecode.com/t/i-just-cant-figure-out-the-solution/36983>\
**Category:** Help\
**Created:** [May 29, 2025, 5:29pm UTC](https://forum.makecode.com/t/i-just-cant-figure-out-the-solution/36983 "2025-05-29T17:29:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [May 30, 2025, 2:17pm UTC](https://forum.makecode.com/t/i-just-cant-figure-out-the-solution/36983/3 "2025-05-30T14:17:59Z")

</div>

Overlap blocks are very glitchy I recommend ditching them and checking for the closest sprite to detect overlaps instead. I’ve run into overlap issues many times, most notably with my isometric city builder a few years ago  
You can read my topic on it for some more info. [[Tutorial] Making an Enemy Follow Multiple Sprites :snake:](https://forum.makecode.com/t/tutorial-making-an-enemy-follow-multiple-sprites/33914) it’s about making enemies follow multiple sprites by finding the nearest sprite. You can isolate the nearest sprite part of the code, combine it with a range the size of the sprite, and you get a perfect overlap function.

---

_[View the full topic](https://forum.makecode.com/t/i-just-cant-figure-out-the-solution/36983)._
