Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Bitmap help with VB.Net 2003

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 FierceTiger   Members   

122
Like
0Likes
Like

Posted 22 February 2005 - 09:01 AM

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?

#2 Tang of the Mountain   Members   

100
Like
0Likes
Like

Posted 22 February 2005 - 12:49 PM

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






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.