Hi again, it is DevaS. I was wondering if you guys saw any problem with this script as it doesn't work. This is a bit tampered from my first try, but I am pretty sure the basic concept of it is still there. Any help would be greatly appreciated. Thanks.
// NPC made by Glysterine (FAQ)
if (playerenters) {
this.x=64;
setarray Stary,8;
timeout=1;
}
if (timeout) {
for (this.index2=0;this.index2<=7;this.index2++
{
showimg this.index2-1,kstar.png,this.x,Stary[this.index2-1];
showimg this.index2*2-1,light2.png,this.x,Stary[this.index2-1];
changeimgcolors (this.index-1)*2,.5,.5,.5,.9;
changeimgzoom (this.index-1)*2,.25;
}
if (this.x=64){
for (this.index=0;this.index<=7;this.index++
{
Stary[this.index-1]=random(0,64);
}
this.x=0;
timeout=.1;
}
this.x=this.x+1;
timeout=.1;
}
This is my first real attempt at using arrays. I have a feeling those are the biggest problems.
(I just realized one stupid mistake on my point, which I just fixed. Now the lighteffects aren't working properly.)
DevaS posting on Masamune's account