Down with stacking (you can download it from here, btw: https://yadi.sk/d/_-RdIMGe3Gnxm8 (controls: arrows, space, R)), now I'm making color matching game. And I need to count blocks again, but this time I want to count all adjusted blocks, so for example, if there are 5 or more blocks adjusted, you get a bonus or something. Or you can destroy some blocks only if 5 or more adjusted. The possibilities!
Ok, what I came up with:
when we click on a block, the game starts to create instances on top of adjusted blocks of the same name and then counts this new instances (and then destroys them).
And that's fine, I guess.
But this doesn't allow the game to count all the separate groups of blocks on the field. Like if it wants to highlight the biggest group that brings the most points.
Any suggestions (easy solutions)?