1. set up initial alpha with .alpha
2. call fadeovertime(time_goes_here)
3. set new, desired alpha that should be faded towards
4. fadeovertime will do stuff in the background, as a separated thread
5. setting alpha will override fadeovertime (=cancel it, and set the new alpha immediately)
6. after time_goes_here your hud will have the new alpha
So, if you want a "breathing" style hud, you should do something like this:
Code:hud.alpha = 0; while(true) { hud.fadeovertime(1); hud.alpha = 1; wait 1; hud.fadeovertime(1); hud.alpha = 0; wait 1; }