Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (miwok, AndrewAMD, Quad, TipmyPip, fairtrader), 601 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Cant see my entity createt by ENTITY definition. #234672
11/04/08 04:42
11/04/08 04:42
Joined: Sep 2008
Posts: 8
W
wolz Offline OP
Newbie
wolz  Offline OP
Newbie
W

Joined: Sep 2008
Posts: 8
Why canīt i see my ENTITY? In Light-C.

ENTITY* qwert =
{
type = "earth.mdl";
layer=10;
view=camera;
x=222;
y=222;
z=1;
flags = VISIBLE;
}

Re: Cant see my entity createt by ENTITY definition. [Re: wolz] #234673
11/04/08 05:44
11/04/08 05:44
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
The definition u used above is called a Layered View Entity. It is attached to the camera.

First your y value are way too big. i.e they are far from the camera to be seen on tat screen.

and for it to be visible from the start, u need 2 set another flag. try this:

Code:
ENTITY* qwert =
{
type = "earth.mdl";
layer=10;
view=camera;
x=200;
y=30;
z=1;
flags2 = VISIBLE; //visible from the start. 
flags = VISIBLE;
} 



A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Cant see my entity createt by ENTITY definition. [Re: delinkx] #234796
11/04/08 19:16
11/04/08 19:16
Joined: Sep 2008
Posts: 8
W
wolz Offline OP
Newbie
wolz  Offline OP
Newbie
W

Joined: Sep 2008
Posts: 8
Thanks.You helped me out.

I still dont exactly understand how to use flags proper.

Re: Cant see my entity createt by ENTITY definition. [Re: wolz] #234863
11/05/08 03:10
11/05/08 03:10
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
The manual is your best friend smile


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Cant see my entity createt by ENTITY definition. [Re: delinkx] #234866
11/05/08 03:29
11/05/08 03:29
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Think of flags as a checklist of properties that you want your entity to have.
So if you want it to be visible in the scene, then you add visible to the flags checklist.

Same goes for translucent, shadow, centre_x, etc...

To seperate flags use the | (shift + backslash) characters... eg,
VISIBLE | TRANSLUCENT.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1