Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Hi guys,
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
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
Develop games in your browser. Powerful, performant & highly capable.
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.