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
Unfortunately, I don’t think so.
at least not without a lot of math and stuff that I don’t understand very well.
1 Like
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