Quote:
Originally posted by Brady2
Jadis:NPC Code:
if (playerenters||timeout) {
timeout = .05;
this.radius = 10;
this.angle+=.314;
this.x = x+sin(this.angle)*this.radius;
this.y = y+cos(this.angle)*this.radius;
showimg 0,@Arial@@hi friend,this.x,this.y;
}
|
I suggest you reset the angle every circle it does , else in minutes it will be a HUGEEEEEEEEEEEEEE variable.
and forgot here is the code
NPC Code:
if (playerenters||timeout) {
timeout = .05;
this.radius = 10;
this.angle+=.314;
if (this.angle>6.28) { this.angle=.314; }
this.x = x+sin(this.angle)*this.radius;
this.y = y+cos(this.angle)*this.radius;
showimg 0,@Arial@@hi friend,this.x,this.y;
}