Jump to content
  • Advertisement
Sign in to follow this  
SongkranW

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

This topic is 1970 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement

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

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

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

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

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!