|
-
Jun 19th, 2000, 09:29 PM
#1
Thread Starter
New Member
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
-
Jun 19th, 2000, 10:24 PM
#2
Thread Starter
New Member
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!
-
Jun 20th, 2000, 02:12 AM
#3
I believe that's because the picture is still on the DC. Use the Cls method to clear it off.
-
Jun 20th, 2000, 04:14 AM
#4
Thread Starter
New Member
-
Jun 20th, 2000, 04:37 AM
#5
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.
-
Jun 21st, 2000, 12:47 AM
#6
transcendental analytic
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.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 21st, 2000, 02:07 AM
#7
But if you have multi-coloured backgrounds, it could be quite troublesome. The Cls will simply clear the DC.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|