Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (Quad, TipmyPip), 6,316 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sky entities in main() function #227287
09/13/08 16:57
09/13/08 16:57
Joined: Sep 2008
Posts: 6
A
Alex131 Offline OP
Newbie
Alex131  Offline OP
Newbie
A

Joined: Sep 2008
Posts: 6
Hi again, though i don't have anyone to say hi to because nobody helped me on my previous question ......
I'm trying to load a sky and a scene using the sky entities, outside the main() function.
Code:
	SKY sky_1 =
{
  type = <horizon.pcx>; 
  layer = 3;	
  scale_x = 0.5;
  speed_u = 1;
  speed_v = 1.5;	
  tilt = -10;	
  flags = dome | visible;	
}

I tried to load it by adding a single row in the main function
Code:
SKY sky_1;
but obviously this isn't the way to call the sky entity because the compiler says that there's an unknown key word SKY.
I would like to know how can i add them to the main function so that i can load my scene the way i want it when the application starts.

Re: Sky entities in main() function [Re: Alex131] #227389
09/14/08 06:45
09/14/08 06:45
Joined: Aug 2000
Posts: 1,141
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,141
Baunatal, Germany
Yes, there is no "SKY" in lite-C, and for files you must use "" and not <>.

Why dont you look in the manual? The example for a sky entity is:

Code:
ENTITY* skycube =
{
  type = "skycube+6.tga"; // the image for a backdrop scene
  flags2 = SKY | CUBE | VISIBLE; // sky cube, visible
}

or

ENTITY* skycube =
{
  type = "clouds.tga";
  flags2 = SKY | DOME | VISIBLE;
}




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

Gamestudio download | 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