I know there are probably a few different methods to achieving this but I'm not sure of the best way to go about it and wanted to know if anyone could contribute some ideas.
I want to have different colored blocks that are the same active object but their color is randomly selected by changing an animation sequence at the start of the frame. These blocks are on sliding columns and rows and when 3 or more colors align I want them to be destroyed and score updated accordingly.
To further complicate things, the matching color blocks don't need to be directly adjacent to each other in order for the action to be triggered as long as the blocks are in the same column or row and there is not a block of another colour in between them. For example if a row contained 2 blue blocks, then a green block and then another blue block the match would not be recognized. However if the row contained 2 blue blocks, a void where a block previously was destroyed and then another blue block the match would be recognized.
Any suggestions would be very appreciated! Thanks in advance.