Jig-Saw/puzzle game question

This forum is currently in read-only mode.
From the Asset Store
An amazing and interesting puzzle game for kids!
  • Hi, I've had Construct classic for a while but I am still trying to learn some of its features.   

    I want to make a simple jig-saw puzzle game, but I want to make it so that you can group puzzle pieces together and move them all at once.

    For example, the player starts to make one part of the puzzle and then starts to make another part. I want to have it so they can move the first part as a whole and connect it to the the other part if it matches. Almost like how you would go about putting together a cardboard picture puzzle irl.

    Is this possible?

    Thank you for taking the time to read this. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • It is possible of course, I'll make an example for you later if you will not get help from others.

    Hint: save the relative coordinates(in private variables for example), and mark the connected ones.

  • Ty for the reply!

    Mind elaborating a little more? or maybe another hint? thanks again.

  • Ahh, sorry mate, I was reeeeally busy yesterday - and completly forgot this today.:D

    I hope you can understand the logic behind it, and can make your rules for the puzzle.

    Download

  • Thank you for this! Very helpful. Is there a way so that I don't have to select all of the pieces? Like once the piece is attached to its respective other, can I just move them as a whole?

    newgrounds.com/portal/view/469708

    There's a perfect example of what I'm trying to do.

    Thank you again for the help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not as experienced as some of the other people here but I hope this helps: dropbox.com/s/ldlofmvea6i4lz5/JigsawPuzzle_Example.cap

    Actually what I made is really messy and doesn't work quite right. Some of the more experienced guys like Bartosh (one of the guys who helped me figure out arrays) and R0j0hound may be able give you a better example. Or at the very least give a few fixes for mine to better guide you.

    I also suggest if you aren't getting many answers here, that you post your issue in the C2 forums and see is if anyone there can help. If they can then you can transfer their solution to CC.

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