Posted By: Julientdc
Sprite entity - 03/22/08 15:32
I can't see my sprite, anyone have an idea why?
Code:
ENTITY* lumi =
{
type = "test.tga";
layer = 5;
x = 0;
y = 0;
z = 30;
flags2 = VISIBLE;
}
Posted By: JibbSmart
Re: Sprite entity - 03/23/08 08:44
it's not in front of the camera. give it some "x".
julz
Posted By: vlau
Re: Sprite entity - 03/23/08 08:51
While you define a view entity, y is the horizontal position,
z is the vertical position and x is the depth, you should write
as follow :
x = 30; // maybe a higher depth value like 100.
y = 0;
z = 0;
Posted By: Julientdc
Re: Sprite entity - 03/23/08 17:54
I want to place my sprite in the map. Not in front of the camera...
How I can do it? with pos_x?
Posted By: Uhrwerk
Re: Sprite entity - 03/23/08 19:49
With ent_create. Look for it in the manual.