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 / Changing the ambiance per level?

Author
Message
spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 27th Dec 2006 22:58
Hello,

I was curious if it's possible to change the ambiance lighting per lvl, I know if you type something in the "If Used" section in A Win Zone, it can change the sky per lvl... so can the same thing be done with the lighting?

e.g.- (to change the sky): If Used|Sky=wtr.dds
(to change the ambience level?): If Used|ambiance=25

Regards,
spex

Man, I wish I knew what "spex" meant.
bdgbdg
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 27th Dec 2006 23:18
It's not possible right now, it would have to be a new feature...

Project FPS - 71%
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Dec 2006 23:19
A script attached to any dynamic object can change the ambience. Most people use a dynamic light, but you can do it with any entity or a zone. Just add ambience=whatever to the objects main script.

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

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 28th Dec 2006 02:35
Check out the night vision script in the scripts forum.
You can adapt that to accomplish what you are wanting to do.

Benjamin A
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 29th Dec 2006 16:42 Edited at: 29th Dec 2006 16:43
You cannot change the sky with this version, but 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 triggerzones 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 triggerzone.



This will give you a dark ambience when the player is in a triggerzone



This will give you a more normal ambience again.

;Header

desc = normal ambience by BenjaminA

;Triggers

:state=0,plrwithinzone=1:ambience=28,ambiencered=95,ambiencegreen=255,ambienceblue=255:state=0

;End of Script

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

Here are some fun ones:

'Disco' effect



Flickering lights:



In case you don't know how create triggerzones and attach these to them I would direct you to the manual that's in your fps creator / docs folder and info that you can find on this forums.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
Pus In Boots
18
Years of Service
User Offline
Joined: 5th Nov 2005
Location: S.M.I.L.E. industries
Posted: 30th Dec 2006 18:22
Ben, your a godsend. Now go wipe this in these people's pessimistic faces.

Would you kindly look away from the screen when you're in my presence?

visit www.gameshell.tk
G4fan
17
Years of Service
User Offline
Joined: 21st Oct 2006
Location: in my car, driving on and on. . .
Posted: 31st Dec 2006 03:55
Ohh, cool!

Can you say "Benjamin A will be credited"?

My first game: "Wars of Crime"-35% completed
Benjamin A
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 1st Jan 2007 10:56
You don't need to credit me for these scripts, just use the scripts as you want. They're free to use for your freeware, shareware, adware or commercial games.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 2nd Jan 2007 15:38 Edited at: 2nd Jan 2007 15:38
Nice. You are a scripting king.

Man, I wish I knew what "spex" meant.

Login to post a reply

Server time is: 2024-10-09 01:37:50
Your offset time is: 2024-10-09 01:37:50