Hey guys, I have a bit of a problem with rotating my sprite.
Heres my code:
Program Game
Define Ship As Sprite
Define background As Sprite
Define LocationX As Integer = 290
Define LocationY As Integer = 225
Method Main()
background.Load ( "background.gif" )
background.Show()
Ship.load ( "ship.gif")
Ship.Show()
ship.MoveTo(LocationX, LocationY)
While iskeydown ("Q") = False
Delay (10)
If iskeydown("Right") Then
LocationX = LocationX +3
End If
If iskeydown ("left") Then
LocationX = LocationX -3
End If
If iskeydown ("up") Then
locationY = LocationY -2
End If
If iskeydown ("down") Then
LocationY = LocationY +2
End If
Ship.MoveTo(LocationX, LocationY)
End While
Now it works and everything but my ship is facing in the wrong direction.
I have tryed to use these methods "ship.flipvertical() and Horizontal but it still doesnt seem to face the right way.
Could anyone help me with this problem.