Results 1 to 9 of 9

Thread: move picture - picture move and it flicekrs

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    113

    move picture - picture move and it flicekrs

    i am really new to dealing with graphics most my programs i didnt deal with graphics now i need to and i have a picture and the keyboard makes it move but it flicers i heard of api bitblt or something like that and i aint exactly what to do so please help :-o
    With Microsoft
    .evil = True
    .worth = ALOT
    .Level of Caring =0
    .anyhope = NULL
    end with

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    One way - stop the window from redrawing

    Code:
    Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
    
    LockWindowUpdate  Picture1.hWnd ' stop the picture from being redrawn
    'move the window a bit
    LockWindowUpdate False       ' let it redraw

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    how do you make the picture move?
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    113
    i meant image :|
    With Microsoft
    .evil = True
    .worth = ALOT
    .Level of Caring =0
    .anyhope = NULL
    end with

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    113
    images dont have a hwnd why not
    ?
    With Microsoft
    .evil = True
    .worth = ALOT
    .Level of Caring =0
    .anyhope = NULL
    end with

  6. #6
    New Member
    Join Date
    Dec 2002
    Posts
    3
    I am new to this forum but I kinda know some VB. I am just starting a game and can show you an example on how to move a char onto a backround without flickering and also without a white box around him or anything (bitblt) it is a little hard at first but is easy when you catch on to it. just let me know.

  7. #7
    Addicted Member njnets's Avatar
    Join Date
    Aug 2002
    Posts
    206
    Don't you insert oEvents: somewhere?

  8. #8
    Addicted Member njnets's Avatar
    Join Date
    Aug 2002
    Posts
    206
    i mean
    VB Code:
    1. :DoEvents:

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    113
    um yea the the api u say i heard of can i would like to see you explain more and no do events dont help
    With Microsoft
    .evil = True
    .worth = ALOT
    .Level of Caring =0
    .anyhope = NULL
    end with

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