For a better fit on the displayed image you should use ..
ShipImageNo = ( ( Angle + 5 ) mod 360 ) / 10
Reason being, for example, you have images 0-35 so between 355 and 4 degrees you'll want to display image 0 rather than image 35 between 350 and 359 degrees and image 1 between 0 and 10.
Hope that made sense?
Stevie
ShipImageNo = ( ( Angle + 5 ) mod 360 ) / 10
Reason being, for example, you have images 0-35 so between 355 and 4 degrees you'll want to display image 0 rather than image 35 between 350 and 359 degrees and image 1 between 0 and 10.
Hope that made sense?
Stevie