Dr_Nomz
Member
So I want NPCs to be able to move all at once towards another NPC or the player, depending on it's target, but I don't want them all being stuck together. How can I make them avoid eachother? (Like having them each have a small invisible forcefield, that'd be awesome.)
Currently I use this:
motion_add(direction,speed/2);
But it does like nothing, and they only seem to separate if the PC moves THROUGH them, which isn't good.
I use a path/mp_grid system, if that helps:
^Just like the one in the video
Currently I use this:
motion_add(direction,speed/2);
But it does like nothing, and they only seem to separate if the PC moves THROUGH them, which isn't good.
I use a path/mp_grid system, if that helps: