Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
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
2 registered members (AbrahamR, AndrewAMD), 1,278 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
Skybox #103725
12/23/06 03:58
12/23/06 03:58
Joined: Dec 2006
Posts: 20
H
hankenb01 Offline OP
Newbie
hankenb01  Offline OP
Newbie
H

Joined: Dec 2006
Posts: 20
I just bought gamestudio and read the tutorials and I cant figure out how to put a skybox in. I have bought skybox textures and I dont know how to implement them. Do I have to attach the skybox to the player as an entity or something? What am I missing here? Please be easy on me, I am kind of new at this.

Re: Skybox [Re: hankenb01] #103726
12/23/06 04:57
12/23/06 04:57
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline
Senior Member
Zelek  Offline
Senior Member

Joined: Feb 2002
Posts: 357
Florida
Create a new level, place a large cube and add the default texture, then add a position above the cube. Go to map properties, click the new script button, make it an A6 template project. Now for the sky stuff:

Open your project's .wdl file that was created when you created a new script in map properties. Add some code like this right before function main():
Code:

sky daysky_cube
{
type = <daysky+6.tga>;
flags = cube,visible;
layer = 3;
}



but change daysky+6.tga to your cube image. Do a search in the manual for "sky cube" to see how to set it up (it's the second result).

Lastly, add a large hollow cube to your level. Scale it up really big. Now go to the texture manager and add standard.wad to your project. Scroll down in the wad menu and assign your hollow cube one of the two sky textures. These textures have a special sky flag, and they won't actually show up when you run the game - it will be replaced by the sky you defined in the code. Make sure your hollow cube is passable to prevent collisions oddities.

Re: Skybox [Re: Zelek] #103727
12/23/06 05:31
12/23/06 05:31
Joined: Dec 2006
Posts: 20
H
hankenb01 Offline OP
Newbie
hankenb01  Offline OP
Newbie
H

Joined: Dec 2006
Posts: 20
Thank you so much, I never would have figured that out!


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