kinda cheap:
NPC Code:
if (created) {
setimg light2.png;
dontblock;
}
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
this.i=1;
this.goingup=1;
timeout=.05;
}
if (timeout) {
if (this.i<99&&this.goingup==1) this.i++;
if (this.i>1&&this.goingup==0) this.i--;
if (this.i==98) this.goingup=0;
if (this.i==1) this.goingup=1;
setcoloreffect 1,1,0,this.i%99/100;
setzoomeffect this.i%2;
timeout=.05;
}