Thread: Mouse System :D
View Single Post
  #4  
Old 11-14-2002, 01:34 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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);
Reply With Quote