Enemy pathfinding clump up help

I am trying to make a game like vampire survivors, right now I am trying to have the enemies path find to the player, that works fine, but they all go inside of each other and when they get to the player, they all get perfectly aligned with each other, even after I move away. What I want to happen is that they push off each other and form a large group of enemies, instead of all going inside of each other. This is the event for pathfinding.

Screenshot 2025-10-30 133101

This is a problem that has plagued everyone for a long time. There are tons of posts on this subject but there’s no real single solution.

My only tips. These might not work but they might inspire other ideas.

Spawn the enemies from different positions.

Target different positions around the player.

If the enemies do spawn from the same locations, decrease the spawn rate.

Using the seperate action with the pathfinder won’t work because the pathfinder wants to stay on the shortest path. If it gets push away, the pathfinder will just put it back.

You might be able to use a hidden object for the path and linked object(s) which follow it. You could create a formation or maybe use the seperate action on them while using a force toward the pathfinding object.

Instead of the pathfinder, you could use the Boids behavior. It works better for birds or fish but it’s worth a try. Maybe combine Boids with a pathfinder. IDK. I’m just trying to brainstorm.

Maybe, when the enemy is close to the player, it’s pathfinder could be disabled and it could switch to applying force and then use the seperate action.

I’m sure others will have their own methods or maybe a twist on my ideas. What we need is a strategy that works as part of the wiki.