|
-
Dec 19th, 2002, 05:14 PM
#1
Thread Starter
Lively Member
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
-
Dec 19th, 2002, 05:42 PM
#2
Frenzied Member
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
-
Dec 19th, 2002, 06:23 PM
#3
Frenzied Member
how do you make the picture move?
-
Dec 19th, 2002, 07:09 PM
#4
Thread Starter
Lively Member
With Microsoft
.evil = True
.worth = ALOT
.Level of Caring =0
.anyhope = NULL
end with
-
Dec 19th, 2002, 07:15 PM
#5
Thread Starter
Lively Member
images dont have a hwnd why not
?
With Microsoft
.evil = True
.worth = ALOT
.Level of Caring =0
.anyhope = NULL
end with
-
Dec 20th, 2002, 04:31 PM
#6
New Member
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.
-
Dec 20th, 2002, 07:03 PM
#7
Addicted Member
Don't you insert oEvents: somewhere?
-
Dec 20th, 2002, 07:04 PM
#8
Addicted Member
-
Dec 20th, 2002, 07:59 PM
#9
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|