Match3 logic [Need help]

Get help using Construct 2

Post » Fri Dec 27, 2013 10:25 am

@PixelRebirth I totally agree:)
It's just me, as a novice in C2 and general programming, always trying to "roll my own" solution instead of using examples:P
Sometimes useful, mostly- complete waste of time^^JJList2013-12-27 10:25:30
B
17
S
5
G
1
Posts: 74
Reputation: 2,647

Post » Fri Dec 27, 2013 10:27 am

[QUOTE=JJList] @PixelRebirth I totally agree:)
It's just me, as a novice in C2 and general programming, always trying to "roll my own" solution instead of using examples:P
Sometimes useful, mostly- complete waste of time^^[/QUOTE]

Understandable!

I still prefer to use my own array-based Match-3 engine as well.
B
22
S
6
G
10
Posts: 1,034
Reputation: 7,514

Post » Fri Dec 27, 2013 12:21 pm

@PixelRebirth Ah-oh teach me nao! Jk:)
Actually, I'd really appreciate if you could point me in a right direction:
1)Do you have a single Array? Is it 2d or 3d?
And if it's 3d.. how "deep" is your array? (ouch this might sound wrong:P)
2)Do you use recursion? Functions or just events&loops?

Thanks in advance^^
B
17
S
5
G
1
Posts: 74
Reputation: 2,647

Post » Fri Dec 27, 2013 2:35 pm

[QUOTE=JJList] @PixelRebirth Ah-oh teach me nao! Jk:)
Actually, I'd really appreciate if you could point me in a right direction:
1)Do you have a single Array? Is it 2d or 3d?
And if it's 3d.. how "deep" is your array? (ouch this might sound wrong:P)
2)Do you use recursion? Functions or just events&loops?

Thanks in advance^^[/QUOTE]

1) I do have a couple of arrays. One for the playfield which is 3d with a depth of 2. It has an additional layer for marking blocks to be destroyed so to speak.

The second array is 1D and being used dynamically. Sort of a queue or tasklist. Basically the game checks this array for entries, calls that function and removes the entry afterwards. If theres nothing left to do the player may interact again.

2) Functions of course. I would argue they are essential for any serious game made in C2. Without them you will end up getting clunky and overcomplicated events for sure.

There are also loops and recursive functions, so yeah. You'll end up using all of that naturally.
B
22
S
6
G
10
Posts: 1,034
Reputation: 7,514

Previous

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, tarek2 and 11 guests