Code: Select all
Private Sub PlayerGravity_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PlayerGravity.Tick
If (Player.Bounds.IntersectsWith(Ground1.Bounds) = False) And (Player.Bounds.IntersectsWith(Ground1.Bounds) = False) And (Player.Bounds.IntersectsWith(Ground2.Bounds) = False) And (Player.Bounds.IntersectsWith(Ground3.Bounds) = False) And (Player.Bounds.IntersectsWith(Ground4.Bounds) = False) And (Player.Bounds.IntersectsWith(Ground5.Bounds) = False) And (Player.Bounds.IntersectsWith(Ground6.Bounds) = False) Then
Player.Location = New Point((Player.Location.X), (Player.Location.Y + 1))
End If
End Sub
