baddies colliding with each other

Blitz3D Forums/Blitz3D Programming/baddies colliding with each other

D_Town_Tony(Posted 2004) [#1]
In my game Titan
www.sideways8-games.com/files/titan_demo_2.zip
the bad guys are little slug like aliens that chase after the player, i didn't want them to just pass through each other so I added collision between them but the problem that causes, is that because there are so many of them on screen at once the tend to get bunched up and at times get stuck. Any one have an idea on how to get around this or should I just let them pass through each other(which may not be as bad as I am thinking it is)


cash(Posted 2004) [#2]
I had similar problems with a game.

I was using types for the baddies so what I did was use the entitydistance command to see how far away they were.

Also used a linepck which checked for collisions. If the linpick returned true then I ran a function which momentarily rotated the baddie away at a random angle from the other,

This way they never actually bunched up.

It worked for me.


D_Town_Tony(Posted 2004) [#3]
Thanks, it worked great, I can't believe I didn't think of that.

I'm using that method to detect walls now as well so they seem to be able to navigate better. Thanks again.