NPC Code:
for(this.a=0;this.a<1000;this.a++){
showimg this.a,light2.png,this.x,this.y;
this.x=x+this.a/this.r*sin(this.i-this.h);
this.y=y-this.a/this.r*cos(this.i2+this.h);
this.i--;
this.i2++;
changeimgzoom this.a,random(.01,.2);
changeimgvis this.a,3;
changeimgcolors this.a,0,random(.55,.6),random(.8,1),random(.8,1);
this.rr=random(2,3);
this.r = x-this.a/(this.r*arctan(this.i2)/sin(this.i)*cos(this.i2));
}
this.h+=.05;
showstats;
timeout=0.05;