How do you rotate a sprite to a direction without it taking "the long way around"?
Here's my code so far in the main loop:
WHILE 1 STICK OUT SX, SY IF (ABS(SX)>0.4)||(ABS(SY)>0.4) THEN TROT=-DEG(ATAN(SY,SX)) 'Sprite's at a weird angle IF ROT!=TROT THEN IF (ROT-TROT)<(TROT-ROT) THEN INC ROT,4 ELSE DEC ROT,4 SPROT 0,ROT ENDIF VSYNC WENDI tried to fix it with more IF statements using (ROT-TROT)>(TROT-ROT) but that didn't work.