Game Development Community

GuiFadeinBitmapCtrl. Can this be given an indefinite wait time?

by Kevin Epps · in Torque Game Builder · 03/03/2007 (9:39 am) · 1 replies

Is there a way to give GuiFadeinBitmapCtrl a indefinite wait time and then let a trigger do the fadeout routine?

#1
03/09/2007 (9:15 pm)
WaitTime is a U32, so the longest you can wait is 2**32 milliseconds; a practical limit (because of S32 computations, you see) might be more like 2**31 ms, ca. 25 days.

If your trigger event occurs before the waitTime is exceeded, you could then set waitTime to zero, thus assuring that the bitmap will then fade out ASAP. I believe the fadeInTime, waitTime, and FadeOutTime are all checked dynamically every time the screen is refreshed, so your trigger latency should be OK.

Go for it!