Quote:
|
since this thread it open. Lets just say i am useing the function shoot() i have the angle at 0.9 im trying to find the distance from the player to my mouse. somthing like an arrow script, any ideas. If im not explaining this right please tell me.
|
You would need to use the distance formula
PHP Code:
distance = ((endx - startx) ^ 2 + (endy - starty) ^ 2) ^ .5;
... I think I got that right