View Single Post
  #4  
Old 05-17-2008, 12:08 AM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Try this;
PHP Code:
temp.dx = worldx(DragItem.x,0) - player.x;
temp.dy = worldy(0,DragItem.y) - player.y;
player.dir = getdir(temp.dx, temp.dy); 
__________________
Reply With Quote