Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer
Static h As Integer
'***********handles collision with a rock, tree, skier********
If contact = "hit" Then h = h + 1
If h = 15 Then
imgOuch.Visible = False
End If
If h > 14 Then
contact = ""
h = 0
imgOuch.Visible = False
End If
For what does "static as integer" stand for. And how can I use "static"? Whats the difference between "dim" and "static"?