16
Script Discussion / Re: Rotating Sprites
« on: October 03, 2014, 10:23:37 pm »
The sprites are fine, the problem is your math. Objects are rotated about an axis of 360 degrees. If a player is going 1km/h, your sprite rotates 180 degrees. If a player is going 2km/h, your sprite rotates 360 degrees. It will only rotate to 0 or 180 degrees or some derivative of it, and especially because you round to the nearest whole number.