• Advertisement
Sign in to follow this  

Bitmap help with VB.Net 2003

This topic is 4715 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok I have a gotten a bitmap to be taken from file and put onto the form, how do i make it move around with the arrow keys?

Share this post


Link to post
Share on other sites
Advertisement
you move the bitmap by incrementing/decrementing the coords as the arrow key is presssed. You are probably drawing your bitmap from the top left corner...so you know where these two points are, so

if(LEFT_ARROW_PRESSED)
{
BMP_X_COORD--;
}
if(UP_ARROW_PRESSED)
{
BMP_Y_COORD--;
}

and the reverse for the other two directions

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement