i am trying to create a videogame but im having trouble moving a picture.
what im trying to do is move a picture called mario left, right, down, up...
im trying to use the arrow keys...
i dont have much experience either. everytime i press the up key the picture goes randomly to a certain spot. Everytime i press it it goes to the same spot >.>
help me~
Private Sub picmario_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyRight
'this will move mario right
picmario.Move picmario.Left - -50
Case vbKeyLeft
'this will move mario left
picmario.Move picmario.Left - 50
End Select
Select Case KeyCode
Case vbKeyUp
picmario.Move picmario.Top - 50
End Select
End Sub