View Single Post
  #8  
Old 01-22-2008, 09:40 PM
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
I've had the same problem, though maybe this can help (since it did for me);

PHP Code:
temp.dx this.path[this.pathpos][1] - this.x;
temp.dy this.path[this.pathpos][2] - this.y;
temp.dist = (dx dy 2) ^ 0.5;
if (
abs(temp.dist) <= 0.5) {
  
this.+= temp.dx;
  
this.+= temp.dy;
  
setPathPos(this.pathpos 1);
  
dropPresent(); // Chooses wether to drop or not drop a gift
  
setCharAni("zone2_idle","");
}
else {
  if (
temp.dist temp.speed) {
    
temp.dx *= temp.speed temp.dist;
    
temp.dy *= temp.speed temp.dist;
    
temp.dist temp.speed;
  }
  else {
    
timegap max(0.1,temp.dist temp.speed);
  }
  
move(temp.dx,temp.dy,timegap,16);

(use 'setTimer(timegap);')
(source; my Santa script for Zone)
__________________
Reply With Quote