Posted By: Knuckles
Screen transitions - 10/05/07 00:21
How do I make the screen fade in and out to black?
bmap the_end <the_end.jpg>;
panel the_end_screen
{
layer = 4;
bmap = the_end;
scale_x = 1.6;
scale_y = 1.6;
alpha = 0;
}
function end_screen_transition
{
the_end_screen.visible = on;
the_end_screen.transparent = on;
the_end_screen.alpha = 0;
while(the_end_screen.alpha < 100)
{
the_end_screen.alpha += 2 * time;
wait(1);
}
the_end_screen.transparent = off;
}