PDA

Click to See Complete Forum and Search --> : Thanks.


n_tarr
Jul 9th, 2002, 09:07 PM
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??

Osiris
Jul 11th, 2002, 09:30 PM
________
| 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

Sastraxi
Jul 12th, 2002, 06:53 AM
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.