
11-14-2002, 01:34 PM
|
|
Banned
|
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
|
|
|
for the direction, calculate the x and y distance between the player and the point you click at then use the function stefan added (getdir) to change the players direction
dx = mousex-playerx;
dy = mousey-playery;
playerdir=getdir(dx,dy); |
|
|
|