Simple Jigsaw puzzle with "dynamic" images

Get help using Construct 2

Post » Tue Jan 29, 2013 1:52 am

so i guess the general jigsaw puzzle mechanic is pretty easy but i don't want to make all my puzzle pieces as a sprite/animation with the image already on it. that would make having a lot of different images(levels) more difficult and i would need to create a ton of sprites. also adding new images would require more work.

instead i made the different types of jigsaw pieces i need as blank (white and a little shaded at the edges) .png files with alpha.
with those pieces i made a 6x4 blank puzzle.

now is there a way to texture the blank pieces with an image and "bake" it to position so every piece keeps the right part of the images when moved?

am i thinking to complicated? is there maybe a better way to get there? AlanSmithee2013-01-29 01:53:17
Posts: 20
Reputation: 904

Post » Tue Jan 29, 2013 11:13 pm

Posts: 20
Reputation: 904

Post » Wed Jan 30, 2013 12:28 am

Off the top of my head without attempting it, I'd probably do what you did and have seperate puzzle pieces to define the shapes, then use those pieces as a mask to show parts of the image.

The problem with this is, for a 1024x768 image for example, that if you had 10 puzzle pieces, then you'd need 10x 1024x768 images.

Without trying, it's hard to say if there's a better way as I haven't messed with masks in C2.

I guess you could create several canvas objects and paste each masked shape into those to cut down on multiple full images.

If you can't figure it out, I might have a bash tomorrow when my mind is more fresh.
Posts: 876
Reputation: 5,650

Post » Mon May 20, 2013 3:06 pm

Hi AlanSmithee,

I cant send you a PM based on my reputation So I will ask here.
Did you figure this out? I'm interested to do the same.

Posts: 3
Reputation: 181

Post » Sun May 26, 2013 6:05 pm

no.. so far i didn't continue this idea because of this problem..

if you figure something out, let me know
Posts: 20
Reputation: 904

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests