[PLUGIN] jMatch3

Post your work in progress addons and get feedback

Post » Mon Oct 06, 2014 1:56 pm

jMatch3 0.4

This plugin handles the logic of a match-3 type game and is using the jMatch3 lib created by Cyrille Bogaert.

Download the plugin.

Download an example file.

I have been using it in an unfinished project of mine and believe it to be the easiest way to create this type of game in Construct 2. Although it might not be as flexible as other solutions.

It is probably important to note that this plugin recognizes continuous matches. Meaning that in the following picture, the green gems would be positively matched.

Image

The gem graphics used in the example file and the picture above were created by Ville Seppanen. Find the source at http://opengameart.org/content/gem-jewel-diamond-glass.
Last edited by PixelRebirth on Tue Mar 28, 2017 9:32 am, edited 2 times in total.
B
22
S
6
G
10
Posts: 1,034
Reputation: 7,514

Post » Mon Oct 06, 2014 2:34 pm

Thanks for this, PixelRebirth.

The documentation on github should suffice for most users - looks simple enough.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Sun Oct 19, 2014 5:19 pm

@PixelRebirth - Do you think it would be possible for you to post a tutorial or some documentation for this plugin? The link attempts to describe the documentation, but it's all in javaScript and really doesn't translate well to C2. Viewing the link just leaves you with tons questions that go unanswered.
B
10
S
1
Posts: 67
Reputation: 909

Post » Sun Oct 19, 2014 9:40 pm

Yeah, we really need a simple demo.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

Post » Mon Oct 20, 2014 9:02 am

Okay guys, look for the commented example in the first post. I hope this helps!
B
22
S
6
G
10
Posts: 1,034
Reputation: 7,514

Post » Tue Oct 21, 2014 10:44 pm

@PixelRebirth

Thanks for example! I would like to ask you a question, Is possible to do quad tiles? I was trying to optimize bubble shooter.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

Post » Tue Oct 21, 2014 11:55 pm

@PixelRebirth - This is awesome! Thank you so much for the example!!! :D

I do have a question though. How would I go about checking for matches at specific locations instead of the entire board? In my game, I want to check for matches only on a single row or column and leave the remainders on the board.

[edit]Also, is there a way to move multiple piece's together, instead of just swapping 2?[/edit]
B
10
S
1
Posts: 67
Reputation: 909

Post » Tue Oct 28, 2014 5:23 am

Thanks for sharing!
B
150
S
27
G
17
Posts: 909
Reputation: 32,330

Post » Tue Oct 28, 2014 9:46 am

@PixelRebirth After testing the plugin, i found that has errors in "checkmatches".
B
150
S
27
G
17
Posts: 909
Reputation: 32,330

Post » Tue Oct 28, 2014 1:23 pm

Joannesalfa wrote:@PixelRebirth

Thanks for example! I would like to ask you a question, Is possible to do quad tiles? I was trying to optimize bubble shooter.


I'm sorry, but could you please explain what you mean by quad tiles?

iwontnamemyself wrote:@PixelRebirth - This is awesome! Thank you so much for the example!!! :D

I do have a question though. How would I go about checking for matches at specific locations instead of the entire board? In my game, I want to check for matches only on a single row or column and leave the remainders on the board.

[edit]Also, is there a way to move multiple piece's together, instead of just swapping 2?[/edit]


There is no built-in functionality for this in the plugin. You will have to make these specific checks yourself with events I'm afraid. Same goes for swapping/moving multiple pieces. Maybe it can help in certain cases to mirror the game board in a regular Array object since it provides more means of manipulation.

iceangel wrote:@PixelRebirth After testing the plugin, i found that has errors in "checkmatches".


Please do elaborate. What about it have you found faulty?

Thanks everyone for the feedback!
B
22
S
6
G
10
Posts: 1,034
Reputation: 7,514

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 2 guests