View Single Post
  #1  
Old 05-16-2008, 11:53 PM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
Player Direction moving to the direction of dropping object

Like in Era, your player's direction moves to the direction of the object that is to be dropped. How would I do this? I've tried these:

PHP Code:
    if(DragItem.player.y)player.dir 0;
    if(
DragItem.player.x)player.dir 1;
    if(
DragItem.player.y)player.dir 2;
    if(
DragItem.player.x)player.dir 3
PHP Code:
player.getdir(DragItem.x,DragItem.y); 
PHP Code:
getdir(DragItem.x,DragItem.y); 
It'd be nice if there was a function like player.dir.pointdirection(obj);
Reply With Quote