Results 1 to 7 of 7

Thread: BitBlit Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    4

    Talking

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    4

    Angry 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!

  3. #3
    Guest
    I believe that's because the picture is still on the DC. Use the Cls method to clear it off.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    4
    thanks, I'll try that!

  5. #5
    Guest
    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.


  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  7. #7
    Guest
    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
  •  



Click Here to Expand Forum to Full Width