Results 1 to 5 of 5

Thread: Puzzle Game Q :

  1. #1

    Thread Starter
    Addicted Member Diab's Avatar
    Join Date
    Apr 2001
    Posts
    185

    Question Puzzle Game Q :

    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

  2. #2
    Fanatic Member
    Join Date
    May 2001
    Posts
    837
    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

  3. #3
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  4. #4
    Fanatic Member
    Join Date
    May 2001
    Posts
    837
    yeah but what if he wants the user to be able to load a file that isn't already have made into puzzle pieces?

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width