I have a script which changes the alpha of an panel.
It fades good, but after 1 fade, it stops... Until I recall the function...
I want it to loop so it fades continious...
Can somebody help me?
This is the script:
Code:
function 1st_flash() {
while(pan_1st_flash.alpha < 60) {
pan_1st_flash.alpha = min(60,(pan_1st_flash.alpha + 2 * time));
wait(1);
}
while(pan_1st_flash.alpha > 20) {
pan_1st_flash.alpha = max(20,(pan_1st_flash.alpha - 2 * time));
wait(1);
}
}