Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Changing the skybox per level

Author
Message
Jack Attack
15
Years of Service
User Offline
Joined: 20th Dec 2008
Location:
Posted: 11th Jun 2010 01:13
I can't get the skybox to change between the first and second level.

Here's the script I'm using in setuplevel.fpi:

; Setup Level Stats
; :state=0:sky=skybank\ww2\Gas
:state=0,levelequal=1:sky=skybank\scifi\Mar
:state=0,levelequal=2:sky=skybank\scifi\Neo
:state=0:music=audiobank\music\generic\main.wav,musicvolume=50,soundscale=25
:state=0:fog=0,fogred=0,foggreen=0,fogblue=0
:state=0:ambience=25,ambiencered=255,ambiencegreen=255,ambienceblue=255

I got the idea from another post, but it still loads the Mars skybox for the second level.

Everytime I think I know what I'm doing with these scripts...

Oh, and I've also copied the Neo skybox to the .exe skybank folder after the game was built as it didn't seem to include that.

Any help would be appreciated. Thanks.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Jun 2010 05:03
Didn't know "levelequal" was a command. I may be out of the loop.

In any case, the way I usually went about this was to change the skybox in the "loading" scripts for each level. Basically have the skybox you want for each level changed in that level's loading script.


The one and only,


Defy
FPSC BOTB Developer
VBOTB Developer '09
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 11th Jun 2010 05:51
I have included info reguarding this, below the 1st post in this thread.
Based apon DavyB's Tut. Hope that helps.
http://forum.thegamecreators.com/?m=forum_view&t=170920&b=21
Jack Attack
15
Years of Service
User Offline
Joined: 20th Dec 2008
Location:
Posted: 13th Jun 2010 12:50
I could hardly contain my excitement once I got this working!

So it has to be done using the loading.fpi per level, who would have thought!

Anyway, thanks for the help, one thing I did notice though is it only brought the default ww2\Gas skybox in when I built the game, but simply copying the skyboxes I needed into the built game skybank folder got it working.

Thanks loads.
Defy
FPSC BOTB Developer
VBOTB Developer '09
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 13th Jun 2010 16:43
Jack Attack - correct.
I have a build using 18lvls, with a variety of skyboxes.
Glad to know you have it working.

Login to post a reply

Server time is: 2024-11-24 23:40:24
Your offset time is: 2024-11-24 23:40:24