So let's assume I have an enemy type. And of course all of the enemies are duplicates of one sprite. I want to detect if they collide between each other and how many of them collide at the moment. How do I do so?
Note that collisions may happen not just in one place of screen/layout but in two or three places at a time. Basically saying there may be not one but two or three bunches of colliding enemies before your eyes at the same time.