[quote:2w609wuw]Oh, bubble shooter. So if the number of bubbles in a row that has the same color is 3 or more, it has to be destroyed. Am i right?
they are destroyed if 2 of the same color are colliding. If there are even more than those 2, all of the same color should be destroyed, yes!
[quote:2w609wuw]And you want it to check if the color is the same just for a certain row, in both direction from a bubble, instead of all the rows. right?
yeah, we just focus on a single row for the moment. There are always 2 bubbles involved in crash since they have the same speed and start at opposite positions. Yes.
[quote:2w609wuw]Now i'm just wondering what you mean by recursive function. You mean a function that has to check for all the colors?
I thought about a function which has to call itself again if certain criteria match. It is called to check the next one in the row. If this one matches, it calls itself again with the position of the last matching bubble again and if this also matches it calles itself again and so on.
It is so difficult to explain this without the capx!