character movements

ThePentiumGuy

Well-known member
Joined
May 21, 2003
Messages
1,113
Location
Boston, Massachusetts
i have 12 graphics for characters
character left 1 , characterleft2, character left 3

and so on

when i say
(when the user preses left)
character.image = characterleft1.image
character.image = characterleft2.image
character.image = characterleft3.image

it goes very choppily and you cant even see characterleft2 and 3
 
To get the best performance you should to 3 things.. enable double buffering like aewarnick said and allpainting in wm:
Code:
SetStyle(ControlStyles.DoubleBuffer, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)
Then you override the OnPaintBackground and do nothing in it.
 
Back
Top