-=Josey=-
Ok, I know how to use arrays farely well, but, I've ran into a delima.NPC Code:
if (playerenters){
this.arrayX={x+1,x+2,x+3,x+4,x+5};
this.arrayY={y+1,y+2,y+3,y+4,y+5};
timeout=.05;
}
if (timeout){
if (playerx in this.arrayX&&playery in this.arrayY){
message Testing...;
}
timeout=.05;
}
This doesn't seem to work right for me. Maybe I'm doing it wrong or maybe I done it right in this thread. I'm at work and yet to test it. Thanks for any help.