|
Banned
|
 |
Join Date: Jul 2005
Location: US
Posts: 5,229
|
|
got it, but now i have a new problem: this part doesn't work
NPC Code:
for(this.i=0;this.i<this.c+1;this.i++)
{
if(this.x<this.mousex)
{
this.x++;
if(this.y<this.mousey)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,68,0,32,32;
}
else if(this.y>this.mousey)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,68,68,32,32;
}
}
else if(this.x>this.mousex)
{
this.x--;
if(this.y<this.mousey)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,68,0,32,32;
}
else if(this.y>this.mousey)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,68,68,32,32;
}
}
else if(this.y<this.mousey)
{
this.y++;
if(this.x<this.mousex)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,68,68,32,32;
}
else if(this.x>this.mousex)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,0,0,32,32;
}
}
else if(this.y>this.mousey)
{
this.y--;
if(this.x<this.mousex)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,68,68,32,32;
}
else if(this.x>this.mousex)
{
showimg 0,dr-divine_light_attack.png,this.x,this.y;
changeimgpart 0,0,0,32,32;
}
}
sleep .05;
}
|
Last edited by excaliber7388; 02-28-2006 at 12:51 AM..
|