Results 1 to 3 of 3

Thread: Thanks.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    10

    Unhappy Thanks.

    I see how you can use BitBlt or Paint Picture but how do I remove the BitBlt picture because when the snake moves over it leaves the sides of that picture (which is the bug) there and i keep on getting dots everywhere on my form. My snake is is made from the line function. Any more help??
    Last edited by n_tarr; Jul 11th, 2002 at 02:59 AM.

  2. #2
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142
    ________
    | main |
    | pic |
    | |
    | [ * ] | the bracket is the place were you
    ¯¯¯¯¯¯¯¯ are going to bitblt a picture over
    ________
    |Picture A |
    | |
    | / \ | <---- picture A "/ \"
    ¯¯¯¯¯¯¯¯
    ________
    | TempPic |
    | |
    | * |
    ¯¯¯¯¯¯¯¯
    (sorry if the pictures above look bad)

    well, before you copy picture A on the MainPic
    what you should do is copy the portion you are going to copy
    onto MainPic, and send it to a TempPic, so TempPic will hold the
    portion that picture A is on before picture A was there
    ya get me?? so later you can delete picture A by Bitblt'ing TempPic
    over were picture A is
    hope this helps
    Last edited by Osiris; Jul 11th, 2002 at 09:50 PM.
    ؊Ϯϊ

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I use 2 pictureboxes, and 1 more if there's a static background. If it's not static, I have pictureboxes for the elements of the background. Make both pictureboxes have the same attributes (the way you like it). But, turn the 2nd one into a Visible = False and AutoRedraw = True 'backbuffer'. The first one should be Visible = True and AutoRedraw = False. Use the .cls command on your invisible picturebox. Then, BitBlt your background onto the same hidden picturebox. Also bitblt any characters or whatever on there. Then, without clearing the visible picturebox, bitblt the ENTIRE hidden picturebox over the visible one. This will eliminate flashing AND trails.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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