Need Horizontal Motion for a Puzzler

Get help using Construct 2

Post » Tue May 08, 2012 12:03 pm

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:

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.

Any help would be really awesome - thanks guys.

Posts: 328
Reputation: 7,762

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests