I just submitted a Jigsaw Puzzle Pack to the Asset Store … Is not in yet but under review …
It is a C# scripted puzzle pack. It is an ‘easy to use’ component pack for creating in-game Jigsaw Puzzles. With 25 unique base ‘tiling’ pieces that can be corner- center- and side piece, makes a total of 225 peaces.
Just drag a JigsawPuzzle script on a cube primitive configure the puzzle script editor settings and you are ready to go. Because of the tiling, any size is possible. Scaled texturing is automatic ofc.
The Jigsaw Puzzle Pack is just for creating an in-game puzzle. If you would want to save state, you could integrate a state save component within the pack. The architecture would support that. However … saving state is not included in the pack.
I’m not sure to understand !?! I apply the script on a cube primitive… And I add any texture on the cube before or after ???
After you add the JigsawPuzzle class to the cube primitive , you have several editor script settings to set the puzzle. One of those settings is ‘image’ ← the texture you want to use. Everything like peace texturing, showing lines or sample background image is generated automaticly.
( you better subclass to a CustomJigsawPuzzle so you will be notified when the puzzle is solved - check the working demo source after aquiring it )
Can I hide/show the background texture ?
If you mean show the picture as a helper. Yes that is one of the settings as well. (check online demo - see first post )
Can the tiles be rotated at the beginning of the game by the script ? Can the player then rotate the tiles ? (for example with right mouse button !?!
No … piece rotation is not included … you will have to implement/code that yourself.
(maybe I will add that in a future release/update)
Only webpuzzle ? Possible to create .exe file or for Mac users ?
If you have Unity3D for the Mac or the iOS version you should be able to create a Mac application, web based app or iPhone/iPad app
Minimal/maximal size of the texture ?
Any texture that you can import into Unity can be used.
Hmm… I don’t understand what you mean with subclass but it will be explained in the demo !?!
Great ! I didn’ t see an hidden helper picture in the demo !?! It’s why I asked you !?! Sorry if I missed it. (I was so impressed by your assets !)
It will be great to add a rotation option in a near future release because it’s an important option for puzzles : More difficult ! But it has to be an option in the editor because if I want to make a very easy puzzle for young children, the rotation must be avoided…
And I don’t script in C#… So I don’t know if I can add this by myself.
Could you give a small 3D effect around the tiles ? With a very small light color on the left/top side and a dark color on the right/bottom side ??? Because actually the tiles are too flat and a kind of 3D effect (+ rotation option) on each tile will make a PERFECT jigsawpuzzle plugin !!!
Hmm… I don’t understand what you mean with subclass but it will be explained in the demo !?!
Subclassing is to create a new class that inherits functionality from a base class. It is a C# thing. Cant do it in Javascript. You would want to do that because if you want to integrate stuff into a game, you want to be notified when things like ‘the puzzle getting solved’ happen.
The provided JigsawPuzzle Script does al lot of work but for the notifications to work, you should use your own subclass.
Class DemoJiggSawPuzzle : JigsawPuzzle
{
…
}
But the Demo uses a DemoJigsawPuzzle script that is a JigsawPuzzle subclassed script , so you have an example there. It is C# though!
Great ! I didn’ t see an hidden helper picture in the demo !?! It’s why I asked you !?! Sorry if I missed it. (I was so impressed by your assets !)
You DID see the hidden helper picture, because it is projected upon the cube in the demo. It is the original picture that is grayed a bit and where you have to put the pieces on. If you ment to show the orginal ‘colored’ picture… that is not supported in the Script, but has to be under your own scripting control.
!! It is important to realize that the Jigsaw Puzzle Pack is a pack that adds puzzle functionality to your game. Most is handled by the pack, but integrating it in a game will need just a little bit of additional coding/scripting. The demo is not a full game but can be forged into one.
It will be great to add a rotation option in a near future release because it’s an important option for puzzles : More difficult ! But it has to be an option in the editor because if I want to make a very easy puzzle for young children, the rotation must be avoided…
And I don’t script in C#… So I don’t know if I can add this by myself.
I first have some other projects to work on but after I will implement rotation. This can take some weeks though!
Could you give a small 3D effect around the tiles ? With a very small light color on the left/top side and a dark color on the right/bottom side ??? Because actually the tiles are too flat and a kind of 3D effect (+ rotation option) on each tile will make a PERFECT jigsawpuzzle plugin !!!
Do you mean to ‘bevel’ the flat tiles? So you will see the 3D shading better? I must point out that the original blender (.blend) file is provided as well, so you can always adjust/customize the models - ‘bevel’ them - so you will get a more 3D look. Blender 2.5 is open source modeling software and can be used free.
I have bought the Jigsaw Puzzle Pack and Now I am trying to integrate it with my application. My problem is that: The horizontal, vertical lines as well as the scattered pieces take an arbid z (around 196) axis point value where as the puzzle base is at z=10. Hence I aint able to see the horizontal and vertical lines on the puzzle board. I was wondering as to which variable would allow me to set a z value of these components?
I have read the Read Me but unable to figure this out.