So there ' s the current direction the turret is aiming , and there is the direction you want it to go to . angledifference will give you the shortest difference between both . Setting your turret direction to its destination would be the same as adding this difference to its current value . But you could only add a portion of that difference and then the change would be only parial . var dir pointdirectionx , y , mousex , mousey var dif angledifferencedir , imageangle if absdif 10 imageangle dir else imageangle 10 signdif <| sep |> You sound kinda salty . Show us on the doll where they touched you . <| sep |> Doom 3 BFG Edition <| sep |> Jesus , when he started going off about ISIS squads at 711 and the Hindu body builder , I just lost it .