Thanks! Octothorpe
The code snippet works good with the png image. I just had to change the plus sign to minus on the line that updates the x coordinates.
s\x = s\x - Sin(s\dir) * s\speed
s\y = s\y + Cos(s\dir) * s\speed
I will play around with the numbers to get the topspeed I need for different ships and acceleration.
Thanks! Stevie G
ShipImageNo = int( ( Angle + 5 ) mod 360 ) / 10
I added this to my code converting it to integer. The boat seams to point straight down when moving down.
The code snippet works good with the png image. I just had to change the plus sign to minus on the line that updates the x coordinates.
s\x = s\x - Sin(s\dir) * s\speed
s\y = s\y + Cos(s\dir) * s\speed
I will play around with the numbers to get the topspeed I need for different ships and acceleration.
Thanks! Stevie G
ShipImageNo = int( ( Angle + 5 ) mod 360 ) / 10
I added this to my code converting it to integer. The boat seams to point straight down when moving down.