Hello.
I'm using following script...
Quote
ObjectOn(0);
while (counter<100) {
SetObjectTransparency(0,100-counter);
Wait(1);
counter++;
}
...to fade an object. Now, I know that using counter+=2; for example will fade the object faster, but is there a way to make object fading slower?
Thanks.
Yes, you can also adjust a value passed to the Wait() function:
ObjectOn(0);
while (counter<100) {
SetObjectTransparency(0,100-counter);
Wait(10); // will wait for ten times longer
counter++;
}
Oh yes, that did the trick. Thanks!
BFAQ'ed...n00b!!! :P
http://www.rain-day.com/harbinger/faq/#coding11