|
Panel Fading Problems
#212559
06/23/08 01:06
06/23/08 01:06
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
Hi, i know this has been asked and solved a billion times before but i searched and can't find it and i just can't figure it out. How do you make a panel fade away. I have the "logolite.pcx" as my splash screen, then my title screen comes up which is a black background and letters. I have my black background (which by the way is i bmp) set as a panel with the alpha of 100. Here is my code. bmap startup_screen = <startup.bmp>;
panel start_screen
{
bmap = startup_screen;
alpha = 100;
flags = transparent, refresh;
}
function main()
{
...
...
start_screen.visible = on;
fade();
...
...
}
function fade()
{
while (start_screen.alpha > 0)
{
start_screen.alpha -= time;
wait(1);
}
} when my start up screen shows, "logolite.pcx" is still visible in the background due to the "transparent" flag, which i read in the manual, has to be set in order for this to work. WTF am i doing wrong?
|
|
|
Re: Panel Fading Problems
[Re: Helghast]
#212656
06/23/08 16:27
06/23/08 16:27
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
|
|
|
Re: Panel Fading Problems
[Re: Joozey]
#213073
06/25/08 17:43
06/25/08 17:43
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
Yeah, i have tried every thing i could possibly think of and nothing is working. i have even tried to set the panel its self to alpha 50 and run it without using the fading functions but there is still no change. This is what i tested. bmap startup = <startscreen.bmp>;
panel start_up
{
bmap = startup;
alpha = 50;
flags = transparent, refresh;
}
function main()
{
...
start_up.visible = ON;
} It acts like it completely ignores the alpha line and just displays what it wants to.
|
|
|
Re: Panel Fading Problems
[Re: Joozey]
#213074
06/25/08 17:44
06/25/08 17:44
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
Yeah, i have tried every thing i could possibly think of and nothing is working. i have even tried to set the panel its self to alpha 50 and run it without using the fading functions but there is still no change. This is what i tested. bmap startup = <startscreen.bmp>;
panel start_up
{
bmap = startup;
alpha = 50;
flags = transparent, refresh;
}
function main()
{
...
start_up.visible = ON;
} It acts like it completely ignores the alpha line and just displays what it wants to.
|
|
|
|