Try and put this code in the loop. STICK OUT SX,SY AN=DEG(ATAN(SX,SY)) SPROT [sp],FLOOR((AN+45)/90)*90 Also, replace "[sp]" with the sprite management number.