Hi There, first time posting on the forums. I have searched the forums looking for an answer to my question, and am not sure I am correctly stating the search terms to find an answer so I am posting this.
The situation:
There are two types of circles, one is red, one is blue.
When the circles come in contact with one another, no matter the color, they stick together.
When a circle contacts another circle of the same color that is through direct touch in contact with a third circle of the same color, these circles will destroy themselves.
As an example, think of puzzle bobble. When you shoot one of the balls into a chain of balls the same color as it, they explode, but just two balls of the same color touching does not make them explode.
<img src="http://images6.fanpop.com/image/photos/33200000/Puzzle-bobble-puzzle-bobble-33252167-300-210.jpg" border="0" />
The problem:
I can make the circles all stick together, but how can I make it so that the circles know when they have direct contact with three or more of their same color to explode?
I have successfully made them explode when two of the same color attach, but that is through very simple means of making them destroy themselves when they touch themselves.
I don't know if this is possible, but if it is and someone can point me in the right direction i'd be very grateful.
Thanks for your time and hopefully thanks for not making any balls touching each other jokes.
-adam