Sign in to follow this  
GroZZleR

Preventing enemies from bunching up?

Recommended Posts

Hey all, I'm working on a 2d dogfighting game (flash game playable here) and am having an issue with the enemies just bunching up on top of each other. The end result looks pretty ridiculous. Implementing some sort of flocking behaviour seems like a little bit of overkill but is it the best / only solution? Anyone have any ideas on a better way to more realistically have enemies attacking you from all angles? Thanks guys!

Share this post


Link to post
Share on other sites
Yeah, some sort of flocking behaviour.

To put it simply, you can surround your enemies with a sphere (to be more accurate, an area around them giving them personal space), and when they get within a radius, push them apart (slowly) to make sure they aren't bunching up.

http://www.red3d.com/cwr/steer/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this