Link to home
Start Free TrialLog in
Avatar of Hook333
Hook333

asked on

Visual basic tile map

I am just wondering what is the best way of doing this for smoothest operation.  I will be making a tile map that they can right click on the map and move map up and down in the form.  The form will take up about a 4th of the screen and by clicking on castles on the map other forms pop up to give them choices to do things.  I was wondering what would be the smoothest for the map scrolling around, they will be pretty large maps so I cant draw whole map at once.  Things I have seen are api calls and direct x just wondering if anyone out there knows much about this?  If so i will be asking more questions in direct relation to your answer and will keep feeding you points for each question.
Thanks in advance.
Avatar of Hermetic
Hermetic

You should definitely use a double-buffer technique.  I have used two offscreen PictureBoxes and used the GDI BitBlt function to paint only the required section of the screen from the pb used as the source map to the pb used as the back buffer.  Then I use BltFast to move the image from the back buffer pb to the visible picture box.  I could probably post some example code if necessary.
Avatar of Hook333

ASKER

the example code would be awesome I will up the points to 350 for the sample code.  Also is there a way to direct you to my future questions as I will have more but want to give all points to one person who is helping me with them?
Thanks for the help.
ASKER CERTIFIED SOLUTION
Avatar of Hermetic
Hermetic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Hook333

ASKER

ok I will keep them open then I was just going to let you know when I posted new ones so you could look at them.  thanks for the help I will award you the points for this one.
Avatar of Hook333

ASKER

did you get the 350 points?