Hi people,
I am in the process of making a match 3 or more game. I have my blocks laid out in a grid, and all the blocks are accessible by a 2 dimensional table (table[x][y]). However I can’t seem to figure out how to remove surrounding set of blocks with same type as the tapped one. If it was just a match 3 game, I could easily remove them with checking the row or column the tap event has occured, however the similar blocks can be in any shape or number, much like in diamond dash.
So I’ve come to conclusion that I need to use a simple flood fill algorithm on my grid, but all the examples I have found are way above my understanding. I would be delighted to have a little hand to ease my pain and suffering.
Thank you very much,
K. [import]uid: 99031 topic_id: 34547 reply_id: 334547[/import]