This is the math to find the direction a sprite goes depending on the angle. xx=cos(angle*pi()/180) yy=sin(angle*pi()/180) What I need to know is how to find the angle depending on the direction(the complete opposite). I'v tried flipping the formula around with no luck. Can anybody help?