bulldogm Posted December 9, 2003 Posted December 9, 2003 does anyone know how to have a picture follow my cursor like for a spaceship game? Quote
Darc Posted December 14, 2003 Posted December 14, 2003 you could keep track of the mouse point in a global variable and then update it when the mouse moves: Dim ptMouse as New Point(0,0) Public Sub myForm_MouseMove(Byval sender as Object, Byval e as MouseEventArgs) Handles MyBase.MouseMove pt.X = e.X pt.Y = e.Y End Sub now draw the image at the the coordinates stored in ptMouse Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.