Thread: Image Effects!
View Single Post
  #3  
Old 08-26-2002, 11:16 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: Re: Image Effects!

Quote:
Originally posted by Kaimetsu
Kinda nice, I guess, but there are problems. Those things need to be prerendered, and that'd stand a chance of causing noticable slowdown. There are ways around it yadda yadda but it's easier if people just use mngs.
I suppose...unless I can get my great NPC scripter to help or someone else

It looks neat what I've done so far...but I'm having a little difficulty trying to figure out a way to do it all with one NPC.

NPC Code:
//#CLIENTSIDE
if (playerenters) {
this.imgx = 0;
this.img = 1;
this.y = 0;
showimg this.img,dk_logo.png,screenwidth/2304+this.imgx,12+this.y;
changeimgcolors this.img,1,1,1,1-(this.y*.01);
changeimgpart this.img,this.imgx,0,1,112;
changeimgvis this.img,7;
timeout = .05;
}

if (timeout) {
this.y = 0;
for (this.y=0; this.y<24; this.y=this.y+1.5) {
showimg this.img,dk_logo.png,screenwidth/2-304+this.imgx,12+this.y;
changeimgcolors this.img,1,1,1,1-(this.y*.01);
changeimgpart this.img,this.imgx,0,1,112;
changeimgvis this.img,7;
sleep .05;
}
for (this.y=24; this.y>-1; this.y=this.y-1.5) {
showimg this.img,dk_logo.png,screenwidth/2-304+this.imgx,12+this.y;
changeimgcolors this.img,1,1,1,1-(this.y*.01);
changeimgpart this.img,this.imgx,0,1,112;
changeimgvis this.img,7;
sleep .05;
}
timeout = 0.05;
}



That is what the script is for one vertical line (1x112) and the image is 608 pixels wide. I know there's a way to do it with one NPC I just keep hitting the wrong way...heck I've even come up with an idea on how to possibly determine needed lines using imgwidth(); just not sure how to get one NPC to do all of those lines in a very smooth manner. I'll keep working at it though...eventually I'll get it
__________________
Reply With Quote