Panels...

Posted By: dakilla

Panels... - 04/09/09 16:12

PANEL level_pan =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = open_bmp;
flags = SHOW;
}

when i try to start up my level with this panel it doesnt work and says that 'open_bmp' is an undeclared identifier. i think that my fault lyes in 'open_bmp' but have no idea of what to do. i have tryed putting in just about every picture file type i know. any help?
Posted By: Farodin

Re: Panels... - 04/09/09 16:18

Hi,

you have to define first your bmap for this panel.

e.g.: in c-script: bmap open_bmp = <yourfile.bmp>;
i think in lite-c it should be similar.

try this ;-)
Posted By: dakilla

Re: Panels... - 04/09/09 16:26

kk thanks
Posted By: dakilla

Re: Panels... - 04/09/09 16:35

still not working, i used the lite-c code 'BMAP* open_bmp = "open.bmp";'
and now there is no error message, but the panel just doesnt show.
Posted By: MMike

Re: Panels... - 04/09/09 16:50

BMAP* open_bmp ="open.bmp";

you missed the panel* <-- (*)
PANEL* level_pan =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = open_bmp;
flags = SHOW;
}
Posted By: dakilla

Re: Panels... - 04/09/09 16:57

yay!
thanks!
© 2024 lite-C Forums