Fifteen Game : preventing jumps across the board

Get help using Construct 2

Post » Wed Nov 02, 2011 4:29 pm

I'm trying to make a Fifteen-like game (also known as Mystic Square and things like that).

The link for the project : http://dl.dropbox.com/u/1412774/fifteenGameNormal.capx. That one uses a linear presentation for the tiles. Here's one which needs the Random Array (at least the first version of the plugin...) : http://dl.dropbox.com/u/1412774/fifteenGameRandom.capx
I've recreated the simple barrel mechanism to switch together two values (here two tiles of the game). What's bothering me is that the player can make "jumps" across the board. I need a simple mechanism to prevent players to switch tiles that aren't nearby. Any idea ?

Edit : at the very moment I hit the "Post" button, I realised what's the solution.
So I updated the two files. They are know working as intended. Sorry everybody...Pode2011-11-02 16:36:50
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Wed Nov 02, 2011 5:13 pm

Now, I just need to find a quick & clever way to know when all the tiles are ordred in the right order...

If somebody has an idea...
B
33
S
9
G
6
Posts: 709
Reputation: 6,704


Return to How do I....?

Who is online

Users browsing this forum: adi pratama, Messy1001 and 23 guests