Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-01-2002, 09:33 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.