Cheetaiean
Member
- Joined
- Jan 20, 2014
- Messages
- 13
- Programming Experience
- Beginner
So I have a skier which I control with the arrow Keys.
To make him move I use Booleans (ex.GoRight, GoLeft). When trying to prevent him from leaving the form I use things like
However, that does not prevent him from getting repelled or stopped by the border, only if i stop pressing the GoRight key for example will the skier stop.
Any help would be greatly appreciated.
To make him move I use Booleans (ex.GoRight, GoLeft). When trying to prevent him from leaving the form I use things like
VB.NET:
If (Me.imgSki.Top - 10) < 0 Then GoUp = False
ElseIf (Me.imgSki.Top - 10) > 0 Then
GoDown = False
End If
However, that does not prevent him from getting repelled or stopped by the border, only if i stop pressing the GoRight key for example will the skier stop.
Any help would be greatly appreciated.