colliding actors(enemies) of one group

Shishkov

  • Posts: 169
Hello everybody,

I'm working on a shooter and my enemies can move everywhere and also they can move on each other but I want to prevent it. I would like to make them understand the neighbour enemies of one group and spare the distance between(not to move on each other) and not to fire on each other in case one enemy is in front of another or pale the sight.
Could you help me to solve that problem?

XCO

  • Posts: 110
I am also new so not sure, but if you are asking to make certain bullets effect certain enemies with out effecting others ? Than I believe its a matter of checking the sensor button in the collision.. I think.. Im sorry if im wrong lol

Good luck! :)

Shishkov

  • Posts: 169
Thank you for your desire to help, but actually you are wrong.
Nevertheless, I try to describe it more carefully.
I  have 6 objects of one group(enemies) and they are following the player on the screen and facing him, but they can not make out the distance between each other and they start to overlap each other and fire on each other.
So I want to make them understand the distance between each other and not to approach to each other(avoid overlap) and not to fire on each other in case the object(enemy) in front of another(it pales sight of other object).
So, please, be so kind and help me?