Hey guys!
I'm making a lander game, byt I cant get the speed right when i try to slow the ship down, and when it falls....I have tried looking at the lander game here from VB world, but I couldn't figure it out...

VB Code:
  1. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  2. Dim Speed As Single
  3. Dim Direction As Integer
  4.  
  5.  
  6.  
  7. Private Sub Timer1_Timer()
  8.  
  9.     If (Picture1.Left > LandingPad.Left - Picture1.Width - Picture1.Height) And ((Picture1.Top _
  10.         > LandingPad.Top - Picture1.Height) And Picture1.Top < Picture1.Top + Picture1.Height) Then
  11.               Timer1.Enabled = False
  12.               If Speed > 1 Then
  13.                 Print "Ship crashed!"
  14.             Else
  15.                 Print "Ship saved!"
  16.             End If
  17. End If
  18.  
  19.  
  20. If GetAsyncKeyState(vbKeyLeft) Then
  21.     Picture1.Left = Picture1.Left - 20
  22. End If
  23.  
  24. If GetAsyncKeyState(vbKeyRight) Then
  25.     Picture1.Left = Picture1.Left + 20
  26. End If
  27.  
  28. If GetAsyncKeyState(vbKeyUp) Then
  29.   Speed = Speed - 1.5 / 60
  30.   Me.Caption = Speed
  31.     Direction = Direction - 20
  32.     Picture1.Top = Direction
  33. ElseIf Not GetAsyncKeyState(vbKeyUp) Then
  34.  
  35. If Speed >= 15 Then
  36.     Speed = 15
  37. End If
  38. Speed = Speed + 1.5 / 60
  39. Me.Caption = Speed
  40. Direction = Direction + 40
  41. Picture1.Top = Direction
  42. End If
  43.  
  44. End Sub