JIGSAW PUZZLE
(Thanks Imari, Lyberodoggy and Mercedes)
What you need to create the puzzle:
The image of the puzzle assembled
A transparent real-size gif for each piece
An icon for each piece and one for the assembled image
Variables corresponding to each piece
Given that the player has already the pieces of the puzzle in the inventory, this is what you should do with the frame where you want it to be reassembled:
Create as many hotspots as the pieces of the puzzle, smaller than the size of the real pieces (you can make one and duplicate it), and place them at the center of the area where each piece is supposed to belong; change the shape of the cursor in something that looks like an interactive point, as the cross or so.
Then follow this steps for each of them:
Open the ?Manage inventory items? option, drag the icon of the correct piece for that place, whatever it?s called, onto the hotspot frame and when the ?Hotspot properties? window opens go to the tab ?Variables? and set the corresponding variable?s value to become 1. Repeat this procedure for each hotspot. Do not forget to check the ?Remove the dragged item from the inventory? option in the ?Action? tab, otherwise the pieces will remain in the inventory together with the ones not yet placed!
Then create much bigger hotspots (they will automatically resize to fit the imported image) to be placed over the first set of hotspots and for each of them follow this steps:
After tracing the hotspot the ?Hotspot properties?window opens; in the tab ?General?, in the bottom, set the ?Hotspot appearance? as ?Picture?, DO NOT check the ?Resized to fit the hotspot size? option, and import the graphic file .gif corresponding, in the assembled puzzle, to the position of that hotspot. The frame will resize around the fragment and the missing parts will result in transparency that, overlapped on the contiguous pictures, will show what?s behind (Thanks Lyberodoggy!!!).
Then go to the ?Variables? tab and set the second option so that the hotspot should be visible only if the value of the corresponding variable is 1. Repeat this procedure for each hotspot.
While creating and giving properties to this second set of hotspots assemble them in the proper positions, so that the ripped edges fit each other.
In the end create a little ?Check hotspot? (thanks twice Lyberodoggy!), just the size of the cursor (whatever you?ll like it to be), that you will place somewhere suitable (if your image fills the whole frame, my advice is to make it a little smaller so as to save a little space for your ?check hotspot?).
In the ?Advanced? tab of this last hotspot enable VBScript and write this code:
If (variable name)=1 AND (variable name)=1 etc?(repeated for all the variables needed to complete the puzzle) Then Action.GoToFrame "(frame name containing the assembled image)"
I hope not to have forgotten anything, if you find mistakes please post here. I apologize for my bad english and... yes, I know that this tut may sound naive... but it's just what I'd have looked for at my small stage of knowledge...
P.S. I couldn't attach the project folder with the jigsaw realized, maybe depending on its size... anyway I hope that the text is clear enough.