Results 1 to 3 of 3

Thread: BitBlt is rendering flickering graphics[resolved]

  1. #1

    Thread Starter
    Member Shadow503's Avatar
    Join Date
    Apr 2006
    Posts
    37

    Resolved BitBlt is rendering flickering graphics[resolved]

    Some of you might of seen my other thread about how I'm making a game like galaxian. I'm using the Bitblt to render the graphics but it is giving me flickering objects.

    The weird thing is only that the scrolling background is not flickering, but the objects being painted on top of it are.

    I've attatched my project, any help would be appreciated.
    Last edited by Shadow503; Apr 8th, 2006 at 06:03 PM.

  2. #2
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: BitBlt is rendering flickering graphics

    set the form1.autoredraw to true
    and add
    form1.refresh after these lines
    BitBlt Form1.hDC, ShipX, ShipY, picshipMask.ScaleWidth, _
    picshipMask.ScaleHeight, picshipMask.hDC, 0, 0, vbSrcAnd
    BitBlt Form1.hDC, ShipX, ShipY, picShip.ScaleWidth, _
    picShip.ScaleHeight, picShip.hDC, 0, 0, vbSrcPaint
    RenderEnemies
    Last edited by damasterjo; Apr 8th, 2006 at 08:29 PM.
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  3. #3

    Thread Starter
    Member Shadow503's Avatar
    Join Date
    Apr 2006
    Posts
    37

    Re: BitBlt is rendering flickering graphics

    Thanks a lot. However I found that it works better if I just put form1.refresh after Render Enemies.

    Once again you have been helpful!

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