Sky Cube

Posted By: mperdue

Sky Cube - 12/15/08 18:16

After a long absence I'm back to playing with GameStudio again. I've converted the old program I was working on to Lite-C and have it mostly running now. One area that I'm having trouble with it the sky cube.

I've defined a global entity with:
ENTITY* skycube;

And then I create the skycube after I load the level with:
skycube = ent_createlayer("stars.pcx", SKY|CUBE|VISIBLE, 0);

But all I get is a blue background. Can anyone help me figure out what I'm doing wrong?

Mario
Posted By: Quad

Re: Sky Cube - 12/15/08 18:19

dont know if that would work but
try skycube.flags |= SKY|CUBE|VISIBLE; after/before the line ent_create layer
Posted By: mperdue

Re: Sky Cube - 12/15/08 18:39

Thanks for the quick reply. Unfortunately it didn't change anything.

Mario
Posted By: Quad

Re: Sky Cube - 12/15/08 18:45

skycube.flags2 |= SKY|CUBE|VISIBLE;

that has a better chance to work.
Posted By: mperdue

Re: Sky Cube - 12/15/08 18:54

I figured that you really meant flags2 so I tried it as well - no joy.

Mario
Posted By: Landixus

Re: Sky Cube - 12/15/08 18:59

ENTITY* std_sky =
{
type="skywhatever+6.tga";
flags2 = SKY | CUBE | VISIBLE;
}
Posted By: mperdue

Re: Sky Cube - 12/15/08 19:31

Oops! I had an older beta version of GameStudio installed. The current release works properly. Thanks for the help guys.

Mario
© 2024 lite-C Forums