Basically, I have an enemy sprite that moves to the player until they are 100 pixels away from eachother.
It also has bullets, so when they are close enough, they begin to shoot at the player.
But, since I have 3 of the same enemies, they go to the player but then they eventually go inside eachother, so there's 3 enemies in one pile. The bad thing about this is that when they begin to shoot, they instead shoot 3 bullets. So if you touch that one bullet, you lose 3 health.
Here's the pic of it happening:
Is there a way of making the enemies "bounce" away from eachother?
I've tried making them solid, didn't work, then giving them a physics behaviour but making them immovable. Still didn't work :/
Is there a way of colliding the enemies with themselves?