PDA

Click to See Complete Forum and Search --> : BitBlit Problem


tshillig
Jun 19th, 2000, 09:29 PM
I am working on improving the "Lunar Lander Program." I am trying to make a flame appear beneath the ship when I push the down button. The flame appears and then I use VBSrcInvert later in the code to say "If the down key is pressed then invert the flame." This makes it look like just one flame is beneath the rocket. When I let off the down key, It leaves just one flame beneath the rocket.

Please Help,
Tyler Shillig

tshillig
Jun 19th, 2000, 10:24 PM
I forgot to tell you guys the problem!! When I let off of the down key, a flame is left just hanging in the middle of the screen!

Jun 20th, 2000, 02:12 AM
I believe that's because the picture is still on the DC. Use the Cls method to clear it off.

tshillig
Jun 20th, 2000, 04:14 AM
thanks, I'll try that!

Jun 20th, 2000, 04:37 AM
But if you have anything else drawn on the DC, it will be erased too, so it might be wise to clear the screen before you draw anything and then you can ReDraw your main image again.

kedaman
Jun 21st, 2000, 12:47 AM
You might want to just remove that flame, store a copy of it's position just before you operate it and then draw a line using box filled (BF) keyword over that area.

Jun 21st, 2000, 02:07 AM
But if you have multi-coloured backgrounds, it could be quite troublesome. The Cls will simply clear the DC.