In order to return the classic orientation where, given the source at x=0, y=0, the destination facing up north is 90°, shouldn't the function be like this?
Function GetAngle:Float(srcx:Float, srcy:Float, destx:Float, desty:Float) Local angle:Float = ATan2(desty - srcy, destx - srcx) angle = angle - 180 If angle > 0 angle = 360 - angle Return Abs(angle) End Function