View Single Post
  #9  
Old 01-22-2008, 11:29 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Dan View Post
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)
So how is that fixing the problem?
__________________
Reply With Quote