Sign in to follow this  
SongkranW

Help! Need solution for no more move problem in line drawing match-3 game.

Recommended Posts

SongkranW    102

Hi I'm the creater of the Running From The Dead a buggy match-3 zombie survival rpg game on iOS.

The game is play like DungeonRaid.

What should I do when there come a situation where thereis no three match available on screen?

Currently I have a trouble detecting when this is happen.

Any suggestion on detecting the event or any ways to prevent it.

Thank.

 

 

Game ScreenShot 

http://i.imgur.com/ToYF4D9.jpg

 

Share this post


Link to post
Share on other sites
Buster2000    4310

I am also part way through developing a match 3 game on iOS but, I have done it in such a way that it scans ahead and generates new blocks so that there is almost never a situation where there is no matches left.  In the very rare case where it does happen then I'm just presenting a game over but, I'm not sure what you are asking as I have never played DungeonRaid.  Are you asking what should happen to your little guy at the top?

By the way your game looks good.  Much better than my current programmer art :S

Share this post


Link to post
Share on other sites
Dragonsoulj    3212

Since you have to have 2 adjacent pieces to create a 3-group, do a search of your entire grid for pairs. If there are no pairs, you can't make a match. If there are pairs, do a search to see if you can make 3 based on them. You will also have to find pieces that have a different piece in between them to handle cases where you switch the middle.

Share this post


Link to post
Share on other sites
SongkranW    102

Since you have to have 2 adjacent pieces to create a 3-group, do a search of your entire grid for pairs. If there are no pairs, you can't make a match. If there are pairs, do a search to see if you can make 3 based on them. You will also have to find pieces that have a different piece in between them to handle cases where you switch the middle.

Thank you Dragonsoulj your way seem to look good. I'm now trying to code this to test.

Share this post


Link to post
Share on other sites
Buster2000    4310

You don't need two adjacent pieces to make a 3 group though.  You could have piece|gap|piece and still be able to make a three group.

Share this post


Link to post
Share on other sites
Dragonsoulj    3212

You don't need two adjacent pieces to make a 3 group though. You could have piece|gap|piece and still be able to make a three group.

 

You will also have to find pieces that have a different piece in between them to handle cases where you switch the middle.

 

Uh...yeah, got that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this