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 Product Chat / Lights On/Off Script?

Author
Message
Blane
15
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 19th Jun 2009 00:34
I wanted to have an event where the lights in the room, or possibly the entire level, go off. Then another event where they would come back on, or the player could turn them on.
Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 19th Jun 2009 02:56 Edited at: 19th Jun 2009 02:59
This should be in the script forum!!

From the community guide: recommended download!

http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21

How to change the ambience lighting per level
By Benjamin A

You can change the ambience level through a script.

Create a trigger zone, place it near the player. Attach a script to it that controls the ambience for that level. Do this in each level.



Change this script for each level and save it as a new file. You need a file for each level. Or.... you can also use a number of larger trigger zones and change the ambience within the level and have different ambience effects in your level.

This will give you a bright ambience in when the player is in a trigger zone:



This will give you a dark ambience when the player is in a trigger zone:



This will give you a more normal ambience again.



You can use a number of these scripts in one level. Attach the scripts and others you've derived from them to trigger zones. When the player steps into the trigger zone the ambience will change. When he's steps into another a trigger zone, the ambiance will change again and so on.

Login to post a reply

Server time is: 2024-10-16 01:19:25
Your offset time is: 2024-10-16 01:19:25