Forum




direction against x and y
2 replies



1
math.atan2(x1 - x2, y1 - y2) * 180 / math.pi
havent tested cause i got error on this code by anothere user
dist = math.sqrt((x_pos - player(i,"x"))^2 + (y_pos - player(i,"y"))^2)
edited 1×, last 26.04.11 08:58:31 pm



