SolidMGS123
03-06-2002, 07:11 PM
I am trying to make like a shooting type of game, how do I get an image/picture to follow where the cursor moves?
Help with cursorSolidMGS123 03-06-2002, 07:11 PM I am trying to make like a shooting type of game, how do I get an image/picture to follow where the cursor moves? John 03-06-2002, 07:20 PM Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) 'right here you move the picture or label End Sub HTH, Orbity And Orbity finally wins a fastest keyboard award :D :D :D orufet 03-06-2002, 07:20 PM In the Form_MouseMove() event, check the X and Y variables. These hold the coordinates, relative to the form, of where your mouse is. SolidMGS123 03-06-2002, 07:45 PM Thanks for help on that, but I do have another question... How do I keep one image from being overlapped by another? (ie the corsshair picture not completely covering the "target" image) John 03-06-2002, 07:53 PM How about using a .gif image with transparency for the parts that aren't part of the "Crosshair" Orbity |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum