Loop through and check distances. If they are too close, shove the other one a bit away by giving it a speed vector. Add up all the speed vectors each zombie is given before it moves and then you’ll have the real speeds/velocities/whatever-you-want-to-call-its the zombie should go. Add that final speed vector to the x/y coords for the actual movement.
Hey, do you like games? So do we — that’s what makes Kongregate the best source of free games online. We have thousands upon thousands of free online games, from both one-man indies and large studios, rated and filtered so you can play the best of the best. Read more »