Click to See Complete Forum and Search --> : Puzzle Game Q :
Diab
May 17th, 2001, 05:11 AM
I Have Write a Puzzle Game in this way :
Load Photo To My Image
afer thet i have 16 pices (images) i use PictureClip and clip
the image to 16 pices .
The Quastion Is Who Can I Do The Same Game But ...
To Make The Pices Non Square Style i meen I want My Pices
looks Like Real Pices of Real Puzzle !
How Coud i do THAT
THANKS :p
DNA7433
May 27th, 2001, 10:00 PM
i don't know for sure, but i think you can use the maskblt api
somehow you could create a mask in the shape of the puzzle pieces and then voila or something.
im not new to vb, but im new to the graphics stuff
Jotaf98
May 28th, 2001, 08:57 AM
There's a much easier way: you could just make a lot of GIFs already cut in pieces (they're not much heavier than JPGs if you use the right software), and put them in Image controls. They'll already appear transparent.
Of course, there's also 2 hard ways: by using BitBlt, or shaped pictureboxes.
DNA7433
May 28th, 2001, 10:00 AM
yeah but what if he wants the user to be able to load a file that isn't already have made into puzzle pieces?
Jotaf98
May 29th, 2001, 12:54 PM
In that case, you should load the different parts of the puzzle using BitBlt... Here at VB-World.net you'll find a good example on BitBlt (Lander game) that also includes transparency trough masks.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.