Hi, I'm trying to create a match 3 game like Bejeweled as a new project but I'm having trouble creating the initial grid. At the start of the grid I need to make sure there are no 3 tile matches present, only a maximum of 2. This way the game won't start removing 3 matches from the beginning.
I've managed a way around it by adding another colour (the black) to the grid. I've achieved this by getting it to check if the previous two tiles are matching. If they do, add a one to the value of the previous tile.
The problem with this method is, if the previous tile is a 4, adding one makes it 5 and out of the range of animation frames I use for tile colours. To combat this I made another frame and made the colour black. This was so I could clearly see where the adding +1 took the number out of range.
It works fine, with the odd black tile thrown in there, I don't get any set of 3 matches at grid creation, but I don't like it. It's a cop out way of doing things and is untidy.
Can any of you brain boxes work out a way of fixes this?
I've been through the examples on the site and while I get them, they're not done the same as I have done it and I don't want to just copy/paste their work and leave it at that, I like to learn and work out how and what the program is doing.
A little heads up would be great. Here's a screenshot of the program and the CAPX.
Thanks.
<img src="http://s13.postimage.org/681e8mfsn/blocks.png" border="0">
CAPX