Hi Guys,
I'm looking for a bit of help.
I'm currently working on a simple puzzle game. Blocks are pushed up every 3 seconds, and if any reach the top the game is over.
To eliminate blocks, you double click on groups of blocks. Any block with at least 1 like block adjacent to it is destroyed.
There is gravity, so blocks will naturally fall to the bottom of the screen
I've got the basic game play down now, but one other mechanic I'd like to implement is sliding the blocks to the middle of the board if there are ever any gaps on the bottom row, so that blocks will always get clumped into the middle like in this image:
<img src="http://www.learnrec.com/ForumImages/PuzzleProblem.jpg" border="0" />
Basically the columns blocks should slide towards the middle of the screen, so there should never be any gaps horizontally between the blocks.
I've tried all sorts of things, but I can't seem to get this to work - I'm pulling my hair out.
I've also included a capx.
dl.dropbox.com/u/65326552/DemoPuzzler.capx
Any help would be really awesome - thanks guys.
EH