A basic Puzzle example (Now it even swaps back!)

This forum is currently in read-only mode.
0 favourites
From the Asset Store
An amazing and interesting puzzle game for kids!
  • I just bump this because I finally came around and adjusted this to work with recent Construct versions. Actually there was just one single event to be slightly changed. I somehow imagined it to be a lot harder, which is mostly why I didn't attempt it before.

    So you can go ahead and try this again. I still consider to add the events to disable swaps that don't result in a match. Or keep it as it is for some of you as a learning experience. It's just a few more events at the right places.

    Why isn't this on the wiki tutorials? Lots of nice concepts and ideas here.

    Thx for adding this to the wiki btw!

  • PixelRebirth I have a fun idea for your puzzle tutorial into a game.

    Premise: You are a molecular engineer at a power plant. By manipulating like subatomic particles you create power, but at a costs. Every time you move a particle it costs energy. So how long can you keep your power station operational?

    Game:

    Moving a particle costs energy

    3 or more particles in a row create energy (bonus for 4+)

    If you run out of energy you lose

    High score board for total energy created

    Anyone else with ideas? Specials? Bad particles? Time attacks?

  • PixelRebirth I have a fun idea for your puzzle tutorial into a game.

    Premise: You are a molecular engineer at a power plant. By manipulating like subatomic particles you create power, but at a costs. Every time you move a particle it costs energy. So how long can you keep your power station operational?

    Game:

    Moving a particle costs energy

    3 or more particles in a row create energy (bonus for 4+)

    If you run out of energy you lose

    High score board for total energy created

    Anyone else with ideas? Specials? Bad particles? Time attacks?

    That actually sounds like a cool concept for a match3 puzzler. Why not go for it Guyon? I'd be looking forward to what you can come up with!

    Oh and well, there could be particles that match with any color when switched, but cost a hell of a lot more. Or the usual stuff that destroys any with the same color it was switched with... heh, can't rly come up with something original can I?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!!!

    AweSome tutorial!!!

    but...ofcourse...few questions)))

    In Your method can't make blocks with animations?

    and one more important: If block don't math than they should swapped back.

    I try to make it for 2 days and... don't know what to do)

    Please help!!!

    Thanks alot for tutorial!)

  • When i run tutorial(3) in debug mode, the following occurs:

    <img src="http://dl.dropbox.com/u/22173473/match3%20debug.png" border="0" />

    The number above the red arrow is constantly increasing.

    Any way to stop this ?

  • When i run tutorial(3) in debug mode, the following occurs:

    <img src="http://dl.dropbox.com/u/22173473/match3%20debug.png" border="0" />

    The number above the red arrow is constantly increasing.

    Any way to stop this ?

    The debugger recognizes the count expression, if there isn't any instance of that object. This isn't a bug, but a quirk of the debugger and shouldn't affect performance.

    Hi!!!

    AweSome tutorial!!!

    but...ofcourse...few questions)))

    In Your method can't make blocks with animations?

    and one more important: If block don't math than they should swapped back.

    I try to make it for 2 days and... don't know what to do)

    Please help!!!

    Thanks alot for tutorial!)

    Of course animations are very possible with this method. Why would you think otherwise? What problem do you face trying to animate the blocks?

    Also I mentioned earlier in this thread that I considered adding unmatched blocks being swapped back. I have a cap with that functionality floating around my hdd, I just need to dig it up. Can't tell about the needed events on top of my head, as I haven't looked into this example for quite a while. Just give me a little time.

    Thanks for your interest in this tutorial! <img src="smileys/smiley10.gif" border="0" align="middle" />

  • Hi PixelRebirth.

    Fantastic tutorial.

    But as many other say, i would love to see the function, where they dont match, and that they will be swapped back.

    Really hope you can come up with something.

    Because i cant really think of a way to do it.

    Great work!

  • But as many other say, i would love to see the function, where they dont match, and that they will be swapped back.

    I had this functionality for a while in an unfinished match-3 game of mine, which uses a slightly modified version of the engine of this tutorial. Didn't bother to add it here so far, as there didn't seem to be a demand.

    But I here you guys and I just added it in, you can download the updated part 3.1 from the first post and enjoy swapping back. <img src="smileys/smiley4.gif" border="0" align="middle" />

    It's a bit of a hack job, but I'm fairly sure it works correctly. If not feel free to reply with any issues you might run into.

    In Your method can't make blocks with animations?

    Let me just quickly come back to that: I think I just realized what the problem was. Of course you can't use frames only for the different blocks like in this example if you want to animate them. You have to use animations instead. To randomize the blocks in a similar fashion you have to use naming conventions for your animations (1_moveright, 3_moveup,...) and a PV to keep track of the actual type (color) of your block. Hope that helps.

  • Just added it my cap...and for some reason it worked first time <img src="smileys/smiley2.gif" border="0" align="middle" />

    Thanks PixelRebirth.

  • Glad to see that it works out well for you chris!

    Just a little heads up though: there has still been a little bug in the engine, which allowed the player to click a block while there were still operations pending, if he happened to click at the right tick.

    Most of the time this shouldn't have occured, since you basically only realize it if you're going about rapidly clicking blocks while others are moving. Even then it's not that easy to spot.

    Anyway, this is fixed now. The engine should be rock solid. <img src="smileys/smiley20.gif" border="0" align="middle" />

    So please redownload Part 3.1 if you downloaded before this post was made. Thanks and sorry for the inconvenience.

  • Just added it to my build and it runs ok, thanks for that.

    -> System: Set global variable 'Moving' to 1

    I downloaded your tutorial 'lifebar.cap', gonna see if i can use that instead of the progress bar object.

    Will post details when i get it sorted.

    The only thing missing now is an 'hint' button.

    One question i wanted to ask...can you use more than '4 frames' with the engine ?

  • One question i wanted to ask...can you use more than '4 frames' with the engine ?

    Yes, you can. Are you getting at using more than 4 different types of blocks or do you mean animating them? Both is possible.

    In a previous reply (see above) I elaborated a bit about using animations instead of simply frames.

    If I'm misunderstanding your problem or you do need additional help feel free to drop me a PM.

  • >

    > One question i wanted to ask...can you use more than '4 frames' with the engine ?

    Yes, you can. Are you getting at using more than 4 different types of blocks or do you mean animating them? Both is possible.

    In a previous reply (see above) I elaborated a bit about using animations instead of simply frames.

    If I'm misunderstanding your problem or you do need additional help feel free to drop me a PM.

    -----------------------------------------------------

    I meant having a block with more than 4 images, like bejeweled has.

    If it involves rewriting eveverything, i will stick at four.(I don't think my brain would be able to cope)

    <img src="smileys/smiley3.gif" border="0" align="middle" />

  • I meant having a block with more than 4 images, like bejeweled has.

    If it involves rewriting eveverything, i will stick at four.(I don't think my brain would be able to cope)

    You can add more frames than just 4 of course for different blocks. All you need to change is the random generation, which foolishly looks like the following

    Random(4)+1

    this can be found once in the 'Startup' event sheet and also in the 'Spawning' event sheet.

    Change it to

    Random(Block.GetAnimationFrameCount)+1

    and it'll work with any amount of different blocks (frames). The rest of the engine logic will still work perfectly.

  • Re 3D Blocks.

    "How about you use invisible 2d dummies still, and just set 3d objects to their positions?"

    I did what you suggested and created events to spawn a 3D BLOCK on top of the 2D BLOCK.

    1, Created a single 3d object.

    2, Created 4 textures ( red, green, blue and yellow)

    3, Inserted ROJOhounds Texture setter Plugin to give the textures to 3d objects.

    <img src="http://dl.dropbox.com/u/22173473/3dpic.png" border="0" />

    EVERYTHING WORKED ! up to event line 250. After that i have no clue how to create and destroy the 3D objects, when the 2d blocks are swapping and spawning ?

    The first event is a simple button to trigger the 3D objects creation ( after the randomisation)

    <img src="http://dl.dropbox.com/u/22173473/events.png" border="0" />

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