|
-
May 27th, 2001, 07:25 PM
#1
Thread Starter
Fanatic Member
animation
i have a control thats displays gif animations, but i only use it to store the frames, not to play the animation. I have another thread that is just a loop that updates the animation frame. The animation is of this guy, and one of the things is he has to walk across the screen. I figured i could make him walk a little ways by moving him in the actual frames, and then when he got to the edge of the frame area i could move the animation control over and reset the frame back the beginning of his walk. The problem is there is like a little ghost dude that is there for a second because when i move the control a little ways, it doesn't update the frame at the same time, so the guy is all the way to the edge, then the control gets moved forward, then he gets sent back to the starting frame.
I fiddled with bitblt but i couldn't get it to work when the picture box is invisible. Its weird cuz the bitblt only seems to pick up what is on the screen in the area of the picture box (which is nothing but the gray background of the form when the visible property of the picture box is set to false) and not the actual picture.
I read somewhere on this forum about transparentbitblt or something but i can't find, and i don't feel like looking for it.
Should i be doing this a different way? Any help would be appreciated.
As you might be able to tell I'm not new to VB, im just new to animation type stuff
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
|