Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoiding Flicker When moving An Image

Status
Not open for further replies.

Haheehi

Programmer
Sep 4, 2000
28
SG
How to avoid flicker when moving An Image like in a game of pacman.

My current code is that:

form_on keydown(blah, blah)
image1.left =image1.left+100

blah .....


how can i make the image move smoothly?

 
If flickering is a really big problem, you could use BitBlt APIs (to cut and paste, may not elimiate flickering all together) or you could use DirectDraw from DirectX which would no flickering at all.

also have you ever used the .move command?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top