# Stop Sprite Overlapping?

**URL:** https://forum.makecode.com/t/stop-sprite-overlapping/23441
**Category:** Help
**Created:** [October 17, 2023, 8:52pm UTC](https://forum.makecode.com/t/stop-sprite-overlapping/23441 "2023-10-17T20:52:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![British-Eddie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/british-eddie/32/11201_2.png) [@British-Eddie](https://forum.makecode.com/u/British-Eddie)
#### Post date: [October 17, 2023, 8:52pm UTC](https://forum.makecode.com/t/stop-sprite-overlapping/23441/1 "2023-10-17T20:52:40Z")

</div>

I’ve been working on a game (see attached), were multiple enemy sprites are stored in their respective classes, which are stored in an array, and because of how they follow the player, the enemy sprites will often end up overlapping to such an extent that they will appear to become one sprite. Is there anyway to stop the overlapping with in-built functions, instead of looping through the enemy sprite array and checking for collisions?  
Thanks

> **[Player Movement](https://arcade.makecode.com/S01522-11368-12024-88189)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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: [October 27, 2023, 6:11pm UTC](https://forum.makecode.com/t/stop-sprite-overlapping/23441/2 "2023-10-27T18:11:55Z")

</div>

Unfortunately, I don’t think so. ☹ at least not without a lot of math and stuff that I don’t understand very well.

---

<div class="post-metadata">

### Author: ![Raccoonux](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@Raccoonux](https://forum.makecode.com/u/Raccoonux)
#### Post date: [September 19, 2025, 7:09pm UTC](https://forum.makecode.com/t/stop-sprite-overlapping/23441/3 "2025-09-19T19:09:10Z")

</div>

I know this is quite a bit late, but you could make an on enemy overlap change their velocity by a small number causing them to push away when they get close, if the number is around 10 it is not very noticeable that they are pushing away and it just looks like they are next to each other
