-
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
-
my bad.
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!
-
I believe that's because the picture is still on the DC. Use the Cls method to clear it off.
-
-
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.
-
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.
-
But if you have multi-coloured backgrounds, it could be quite troublesome. The Cls will simply clear the DC.