View Single Post
Old 02-12-2010, 05:13 AM
Engine Engine is offline
Registered User
Join Date: Jan 2010
Posts: 70
Engine is on a distinguished road
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-8this.x+8| && pl.y in |this.y-10this.y+10|){
this.dx = (pl.this.x);
this.dy = (pl.this.y);  

Reply With Quote