
07-01-2002, 09:33 AM
|
Darth Cucumber
|
 |
Join Date: Mar 2001
Location: At School
Posts: 2,874
|
|
fade.i=0 ? try this.i (this isn't the problem, just an error)
but your math is all wrong, what you are doing is saying this
this.i = 0
while(this.i <= .4) {
dostuf;
}
this.i-=.4
it will never stop since you keep subtracting, it will never be greater than .4
Since your this.i is always less than 0, not only will it not stop, but negitive valuse don't fair too well on the alpha.
maybe you should try reworking your math.
first, think of what you want to achive, you want to fade into the level, so you want to start your this.i at .4, since .4 would be the initial darkness of the level. Next, you wanna subtract from .4 untill you reach zero.
figure it out. I gave you some directions. try to do something with it (I wish not to fix your things for you, rather point out what you can do the help it) |
__________________
subliminal message: 1+1=3
|
|
|