Posted By: xbox
Panel Fading Problems - 06/23/08 01:06
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.
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?
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?