Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,280 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sky Cube #241349
12/15/08 18:16
12/15/08 18:16
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
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

Re: Sky Cube [Re: mperdue] #241351
12/15/08 18:19
12/15/08 18:19
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
dont know if that would work but
try skycube.flags |= SKY|CUBE|VISIBLE; after/before the line ent_create layer


3333333333
Re: Sky Cube [Re: Quad] #241361
12/15/08 18:39
12/15/08 18:39
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
Thanks for the quick reply. Unfortunately it didn't change anything.

Mario

Re: Sky Cube [Re: mperdue] #241364
12/15/08 18:45
12/15/08 18:45
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
skycube.flags2 |= SKY|CUBE|VISIBLE;

that has a better chance to work.


3333333333
Re: Sky Cube [Re: Quad] #241365
12/15/08 18:54
12/15/08 18:54
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
I figured that you really meant flags2 so I tried it as well - no joy.

Mario

Re: Sky Cube [Re: mperdue] #241366
12/15/08 18:59
12/15/08 18:59
Joined: Dec 2007
Posts: 706
Schortens Germany
Landixus Offline
User
Landixus  Offline
User

Joined: Dec 2007
Posts: 706
Schortens Germany
ENTITY* std_sky =
{
type="skywhatever+6.tga";
flags2 = SKY | CUBE | VISIBLE;
}


My Blog German: http://blog.quakeit.de/
www.quakeit.de ||
Airfix Game in Cooperation with:
www.3drt.com
Models Levels and Textures
Re: Sky Cube [Re: Landixus] #241369
12/15/08 19:31
12/15/08 19:31
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
Oops! I had an older beta version of GameStudio installed. The current release works properly. Thanks for the help guys.

Mario


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