I'm trying to build a "bubble shooter" type games.
I can't figure out a system that would detect when 3 or more bubbles of the same color are touching and would destroy them.
Any help would be appreciated. Thanks
Develop games in your browser. Powerful, performant & highly capable.
Have you tried fiddling around with checking for two values, and using one as Object.Count?
You might also have to do custom eventing using collision boxes and/or pinned helper sprites
Well first of all Bubble shooters take place on a Hex grid. Collision should only be checked after the bubble has taken its place in the grid.
Seems to me you need an array statement checking which spaces fill identical bubble "color" codes rather than checking the collision. Of course I've never attempted to make bubble shooters myself so I can't be sure.