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 / Change sky (during loading levels)

Author
Message
Davy B
18
Years of Service
User Offline
Joined: 9th Feb 2006
Location: West Berkshire (UK)
Posted: 17th Jun 2007 12:11 Edited at: 17th Jun 2007 13:56
Ok, i have manage to work out how to change skies during gameplay.

Heres how i did it, first, its not done by using trigger zones, its using the loadingpage script in the languagebank folder, so once you build your game, go to languagebankenglishgamebankmygame and open the setuplevel script and copy this code.



The first 4 state=0 change the 0 to 1 and the state=0:state=1 change to state=1:state=2 so now you should have something like this.



Now say if you first level is day time and you want you second level to be at night, look for the loadingpage2.fpi file, open it and paste the code at the bottom so you will end up with something like this.



Now your need to copy the skyfolder from the skybank in you FPSC file floder into you games folder.

Now if you want to keep the sky from level 2 on to the next 3 levels then simply copy and paste the code onto loadingpages 3,4,5.

If you want a different sky for level 6, copy and paste the code onto loadingpage 6 but change the
to what sky you want. if you want the first sky back on level 7 then just leave loadingpage 7.

Before i forget make sure you save the loadingpage files after pasting the code, any problems just let me know.

go here
http://forum.thegamecreators.com/?m=forum_view&t=108276&b=25 if you want to try my test game and see the sky change in action.

I hope this help everyone.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 17th Jun 2007 22:59 Edited at: 17th Jun 2007 23:02
Davy B,
as you know I have tried and tested your method and it really does work.
I am very grateful to you for releasing this information for others to share and surprised and kind of annoyed at the lack of response to you doing so.I expressed the same opinion when Locrian and s4 would release some of their innovations,one of the reasons they dont do so anymore,s4 being one of the few to say thanks in the showcase thread.
This is probably one of the most important discoveries I have seen released onto these forums,but dont be surprised when someone else comes along and say's they discovered it,this should be something for nickydudes guide with the appropriate acknowledgement to you.
I for one am very grateful.
Thanks again rolfy.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Jun 2007 23:33
Davy B,

Very nice. I heven't tried it yet but I've copied and pasted it to my FPSC Folder of Wonders.

Thanks for this.

Best.

I'm sorry, my answers are limited. You must ask the right question.

s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 17th Jun 2007 23:40
Yeah this is a good find and thanks for sharing this with everyone, Ive looked into the script and it works perfect everytime and is a good stepping stone for better things.

best s4
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 18th Jun 2007 01:31
Again I'd like to say thanks, its the last method I would have thought of so its really nice for you to point this out


Vote today and play the games!
tschwarz
19
Years of Service
User Offline
Joined: 13th Feb 2005
Location: 127.0.0.1
Posted: 18th Jun 2007 05:08
Davy B - Way to think outside the box . . or is that skybox. Before this gets lost in the abyss of forum posts I will make note of it for later use.

Thank you,
Terry
Davy B
18
Years of Service
User Offline
Joined: 9th Feb 2006
Location: West Berkshire (UK)
Posted: 20th Jun 2007 22:23
Only 114 views, i see must people who wanted is haven't posted hear yet.
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 20th Jun 2007 22:29
Brilliant, THANKYOU!

The only reason I hadn't viewed it was I thought it was a question *shoots self*

E.D.


Shame I can't change my name
Davy B
18
Years of Service
User Offline
Joined: 9th Feb 2006
Location: West Berkshire (UK)
Posted: 21st Jun 2007 01:20
Should let other people know about this, instead i should have put for the title Changeable sky script, if only a mod could do this.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 21st Jun 2007 01:34
It's included in the next guide update, so you'll get quite a few people using it


Search for "HellHouse" in Showcase.
Davy B
18
Years of Service
User Offline
Joined: 9th Feb 2006
Location: West Berkshire (UK)
Posted: 21st Jun 2007 13:22
Thanks nickydude
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 21st Jun 2007 22:04
Been scratching my head wondering how to do this...thanks a lot!
Jrock
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Riven
Posted: 22nd Jun 2007 04:58
Makes me feel stupid I didn't think of this earlier, great find.

Practice makes perfect. But if nobody is perfect, why practice?
small fish
18
Years of Service
User Offline
Joined: 3rd Mar 2006
Location: the Spectre Orbital Palace
Posted: 25th Jun 2007 16:17
thank you for this very usefull script

The world is complicated only people are simple

Login to post a reply

Server time is: 2024-11-23 18:43:23
Your offset time is: 2024-11-23 18:43:23