this.radius is just a made up var..
you dont really need it . I personally use it just to say how far from the player. here is a little code for money that goes in a circle with adding radius(called spiraladd if u notice)..
NPC Code:
//npc made by LiquidIce
if (playertouchsme) {
toweapons Spiral Gold;
}
if (weaponfired) {
this.angle=0;
this.radius = 3;
this.spiraladd = 0;
while (this.angle<10) {
this.x=sin(this.angle);
this.y=cos(this.angle);
this.x*=(this.radius+this.spiraladd);
this.y*=(this.radius+this.spiraladd);
this.x+=(playerx);
this.y+=(playery);
lay2 goldrupee,this.x,this.y;
this.angle+=.2;
this.spiraladd+=.2;
sleep .01;
}
}