I am making a zombie survival game with large amounts of enemies, however they all use the same pathfinding technique and slowly merge into eachother. I have tried to make them collide with eachother but that glitches it out. Any ideas?
This is a very difficult problem - by far the easiest thing to do is allow them to overlap, but perhaps add some extra logic to move them in different directions in some circumstances. See past discussions here and here.
Hey there, if you have access to the family feature, try to make a family with the zombie object inside, and add this family to the pathfinding obstacles, see if that works
Develop games in your browser. Powerful, performant & highly capable.
Tomycase, i think then you have to regenerate the obstacle map very often, i dont think this will work :(
Oh right, I forgot about that detail
The reason I don't want it overlapping is because the way I made the spear to deal damage is that if a zombie collides with it while its doing a certain animation, then they lose hitpoints. However if they overlap, the damage can be dealt to almost all of the zombies since they are in the same place. That makes the game way too easy and isn't fun to play.