i neez help manz.
here is what i have so far:
------------------------------------
Dim x As Integer
Private Sub cmdexit_Click()
'this will end the program
End
End Sub
Private Sub picmario_KeyPress(KeyAscii As Integer)
'this will allow the user to use various keys to
'move mario
'this will move the mario up using the 8 key
If KeyAscii = 56 Then
picmario.Top = picmario.Top - 50
End If
'this will move mario down using the 2 key
If KeyAscii = 50 Then
picmario.Top = picmario.Top + 50
End If
'this will move mario left using the 4 key
If KeyAscii = 52 Then
picmario.Left = picmario.Left - 50
End If
'this will move mario right using the 6 key
If KeyAscii = 54 Then
picmario.Left = picmario.Left + 50
End If
'this will make the program exit if mario touches the walls or the goomba
If picmario.Top = 960 & picmario.Left = 600 Then
End
End If
End Sub
Private Sub tmrgoomba1_Timer()
'this will move the goomba.
picgoomba1.Move picgoomba1.Left - -10
If picgoomba1.Left = 5640 Then
picgoomba1.Move picgoomba1.Left - -10 = False
picgoomba1.Left = 1560
picgoomba1.Top = 5640
picgoomba1.Move picgoomba1.Left - 10
End If
End Sub
----------------------------
now i have a problem...
every time my pic called mario touches something i want the program end. how do i do this?
please and thankz