Hi there. I'm making top-down shooter and have some trouble with enemies in there. They stacks in each other and after became looking like only one.
So now, enemies logic is like this:
Bullet behavior + every tick set angle toward to Player pos.
I tried to fix this in 2 ways:
1) Do this stuff
But this works pretty bad and laggy
2) And this
But this decision ruins game at all, because player sometimes get trapped in over9000 enemies without possibility to get out.
Both of them did not work well and i have no idea what i should do to solve this problem, at all. Request your assistance, guys.
So, how can i make the enemies did not stacks in each other?