Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.