How to fix overlapping sprites?

A few days ago, I posted this game, me and my brother’s first ever game, but now I want to fix this feature.

So sometimes the slimes overlap, and when you think there is only one of them, there is, in fact, tens of them, and you get insta-killed when you touch the inconspicuous stack of slimes. Reducing the spawn rate is easy enough, but how do I make it so that they don’t stack???

3 Likes

you could try destroying one of them when they overlap

“on sprite of type (enemy) overlaps othersprite of type (enemy)
destroy (othersprite)”

you could also potentially use an extension to make the slimes have pathfinding. I am not experienced with doing this, and believe it could make your game extremely laggy, but would solve the problem. Either of these should work: