How do I make a pepper panic clone?

Get help using Construct 2

Post » Mon Oct 13, 2014 4:59 pm

Hi

I am making a variation of Pepper Panic Saga-match 3 game (https://king.com/#!/play/pepperpanic of those that may not know it) as an exercise to learn about arrays and grids. I have run into a wall though when I came to merging the tiles-peppers together to produce a bigger one. Anyone have any ideas on how to approach this?

Thanks in advance.
B
5
Posts: 20
Reputation: 370

Post » Thu Oct 16, 2014 4:46 pm

@shirogr - I'm also working on a match-3 game right now. I've actually chosen to make 2 versions to work on simultaneously; 1 with an array and 1 without an array. Each time I get stuck, I hop over to the other one and catch it up to where I was in the other one and then work on advancing with that one until I get stuck again. It's helped me get unstuck in multiple situations and has really helped me understand how things work in C2 and its idiosyncrasies.

With that said, as far as I know, you can't "merge" arrays indices. Visually, you'll be able to, but not logically within the array.

You may need to try something on the lines of - Once a match is detected, visually merge the cells together to create the new sprite, then delete the old values from the array and insert the new "merged" sprite value, as well as the new falling sprite values in the appropriate array indices.

[edit] My brain starting hurting when I was attempting to make my match 3 with an array, so I downloaded the Board plugin from @rexrainbow and it made things a whole lot easier. There's a small learning curve for his plugins, but the time spent learning them is far less than the time you spend being stuck. [/edit]
B
10
S
1
Posts: 67
Reputation: 909


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests