Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

  • *Experts*
Posted

To get the best performance you should to 3 things.. enable double buffering like aewarnick said and allpainting in wm:

SetStyle(ControlStyles.DoubleBuffer, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)

Then you override the OnPaintBackground and do nothing in it.

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...