so i'm making a match 3 game for a uni project, and I want there to be different things happening in the game depending on what the colour of the match is, the closest I've managed to get is a tutorial on creating a colour bomb, which basically gets the tag of the tile it is being matched with, and sets all other tiles with that tag to matched, which destroys them
![alt text][1]
However, how may I tweak this code so that regular tiles return the tag of the tile they are being matched with? eg, tile tag = red. Then I can do a check saying if that tile tag is red then do the event that i want.
If you know how to tweak this to what i want or if you have better code then please show me, I've been stumped on this issue for days now
[1]: /storage/temp/162801-match3tut.jpg
↧