Thread: Sprite Spacing
View Single Post
  #10  
Old 09-22-2001, 02:29 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ Delph Inc. ]
Yes...you need to start from scratch to change the arrow images.
Now...just because I feel in a bit of a good mood I'll post the image part for you:
NPC Code:

if(timeout){
for(e=0;e<this.out;e++){
if(this.arrowact[e]==0){
if(this.arrowdir[e]==3){
this.arrowx[e]+=this.arrowspeed;
showimg e,laser.gif,this.arrowx[e],this.arrowy[e];
changeimgpart e,1,2,29,5;
}
if(this.arrowdir[e]==0){
this.arrowy[e]-=this.arrowspeed;
showimg e,laser.gif,this.arrowx[e],this.arrowy[e];
changeimgpart e,13,20,5,29;
}
if(this.arrowdir[e]==1){
this.arrowx[e]-=this.arrowspeed;
showimg e,laser.gif,this.arrowx[e],this.arrowy[e];
changeimgpart e,0,12,29,5;
}
if(this.arrowdir[e]==2){
this.arrowy[e]+=this.arrowspeed;
showimg e,laser.gif,this.arrowx[e],this.arrowy[e];
changeimgpart e,3,21,5,29;
}
this.arrowtime[e]++;
}else{
this.arrowtime[e]=this.life*20;
}
}
}
}



I just closed the timeout command off...but just to let you know there's about another 80 lines of code in the script.
You'll also have to call the variables, make it so it can hit and hurt players + baddies. The player direction. Make the arrow disappear after a while.
Most of it is mainly using arrays.
__________________
Xerphier Dintch
Featuring
Reply With Quote