Hi,

I try to write my crossair to Lite-C and i can't figure out the right way..

my old code is

Quote:

entity cross_air
{
type = <crossair.bmp>;
view = camera;
flags = overlay,visible,flare;
layer = 0;
scale_x = .05;
scale_y = .05;
scale_z = .05;
x = 50;
y = 0;
z = 0;
}


and i try to use it in like this

Quote:
ENTITY* cross_air =
{
type = "crossair.bmp";
view = camera;
flags = VISIBLE | OVERLAY;
layer = 0;
scale_x = .05;
scale_y = .05;
scale_z = .05;
x = 50;
y = 0;
z = 0;
}


but it wont show up..

i got it with PANEL instead of ENTITY.. but i dont think its the best solution, i think with ENTITY it looks better.. am I wrong? is the PANEL version still good and can i keep it?

PANEL version:

Quote:
PANEL* cross_air =
{
bmap = "crossair.bmp";
flags = VISIBLE | OVERLAY;
layer = 0;
pos_x = 0;
pos_y = 0;

}



and by the way.. how can i figure out the screen size? i tried the screen_size.x thing, but couldnt get it right smirk
anyone has an example?

thx a lot


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875