Match Your Bonbons (Templates)

0 favourites
  • 7 posts
From the Asset Store
Match 3 Game Gem Pixel Art work for any kind of Match Games.
  • Match Your Bonbons — Now for sale in the Scirra Store!

    https://www.scirra.com/store/royalty-free-game-templates/match-your-bonbons-405

    <p>1. Welcome to Match your Bonbons, a Match 3 Construct 2 template. There are plenty of comments in this template that should help ease your understanding of what's happening.</p><p>2. The rules of Match your Bonbons is similar to what you might find in the The Treasures of Montezuma series - great Match 3 games from Alawar Games.</p><p>3. Most of what you might find in a Match 3 game is implemented here including:</p><p>a. Continuous matching until no matches are found based on sprites that use the Platform and Solid behaviors. The game alternates between matching, destroying matched tiles, and replenishing of missing tiles until a steady state is reached.</p><p>b. The game allows for matching of 3, 4, or 5 tiles, although there are no special bonus features implemented.</p><p>c. A scoring system is in place in the game.</p><p>d. You can see for yourself how many matches remain while playing the game. This feature is dependent on a standalone matching function that makes use of arrays.</p><p>e. A reset button is enabled when there are no matches left.</p><p>4. As an exercise in understanding the template, you may want to to implement the following features:</p><p>a. Prevent swapping from taking place when no valid match is found. (Hint: See the function found at line 164).</p><p>b. Provide a hint to the next match. (see above hint).</p><p>c. Implement bonuses, music, and more.</p><p>5. If you have any burning queries, send us an email at the contact below. </p><p>Most of all, have fun with this template and share with us your creations pn the Store forums!</p><p>PS - Artwork courtesy of "luminae" at Open Game Art. </p><p>Ref URL - opengameart.org/content/candy-pack-1%3C/p%3E

    Use this topic to leave comments, ask questions and talk about Match Your Bonbons

  • Here is some more information about this template:

    • There are altogether 266 lines in the template... so don't think that this is a tiny one.
    • The template includes two implementations for performing matching. The first one found from line 5 until line 97 relies on tile sprites employing the Platform and Solid behaviours. The second one found from line 164 onwards is a function that relies on the use of arrays to check for matching.
    • To understand the template better, some features (listed above) have deliberately been left out for the user to implement. It will do well for the user to learn the template and to implement these missing features.
    • The template currently employs 8 different 64x64 sprite images and it is very easy for a user to add more or fewer sprite images by just modifying a single variable (known as I_NUMBER_OF_SWEET_TYPES in the code).
    • If there is a demand, we may one day provide an update with the missing "Hint" and "Check for valid swap" feature.

    Thanks.

  • Version 1.0.1 was released today to rectify a minor bug. Scirra has not gotten around to approving the release yet. Expect to download it on Monday. Thanks.

    Change List -

    • Line 128 event/action added in.
    • Line 130 has a new condition added. This will prevent an illegal swap from taking place.
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Tips on implementing the following:

    a. Prevent swapping from taking place when no valid match is found.

    b. Provide a hint to the next match.

    Suggestions for "a"

    Head over to line 129. This is the line where a check is made to see if a swap has been completed. Perform a quick match check here; you can do this by either adapting the "CheckForMatches" function at line 166 or the matching algorithm at line 7. Instead of checking the entire grid, you only need to check the swapped tiles for matches. Duplicate a similar call to line 110 to reverse the swap motion (since there is no valid match found, we have to move the tiles back to their original positions).

    Suggestions for "b"

    Adapt the "CheckForMatches" function at line 166 to store the valid match results in a new array. After X seconds has passed, randomly choose one of the entries from the array and flash the corresponding tiles to indicate a hint to the player.

    Hope that helps.

  • This is a great template!

    I would like to have one piece of candy that is a center-of-three wildcard, meaning it can be used if two pieces of candy on either side of it match.. How would I do that?

  • Thanks.

    I would only match the 2 on the sides, since the centre candy is essentially a "don't care" case. There is however a need to always check at least 5 candies in a row - that being the best possible match.

    Hope that helps.

  • is there any Unofficial plugin used here? like Rex Board and other?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)