I ended up using move();
I'm having a problem of the particle hopping between players when they are both within range and then glitching out. I currently have the following in a loop move it using move(); I can't figure out why it keeps happening. I tried adding checks but I couldn't figure it out. Could someone tell me what I could do to keep it from jumping back and fourth between players?
PHP Code:
for (pl:findnearestplayers(this.x,this,y)){
if (pl.x in |this.x-8, this.x+8| && pl.y in |this.y-10, this.y+10|){
this.dx = (pl.x - this.x);
this.dy = (pl.y - this.y);
break;
}
}