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 / Fading Sound

Author
Message
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 25th Oct 2011 01:08
Hi all! Just a simple question about sound zones. I want to create a sound zone that when the player enters it, it plays a sound, and when the player leaves the zone, the volume of that sound decreases.

If thats not possible im wondering there is a way to make it so the sound finishes, rather than cuts off, once the player steps out of it.

Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 8th Nov 2011 00:51
Does anyone have an idea about this? I've seen it in other FPSC games.

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 8th Nov 2011 09:34
would be great if this would work, but fading doesnt as far as i know. but as you said, you can play the sound once when player enters zone. you just have to move on in the states so the sound doesnt repeat over and over.
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 15th Nov 2011 23:47
Thanks for the advise.

Bestorio
15
Years of Service
User Offline
Joined: 24th Oct 2009
Location:
Posted: 21st Nov 2011 19:16
Actually, add the "repeatsound.fpi" to a triggerzone or an entity and choose a repeating sound.

As you get further from the object, the sound becomes quieter and vise versa.

M61Vulcan
13
Years of Service
User Offline
Joined: 21st Oct 2011
Location:
Posted: 23rd Nov 2011 17:12
Use "soundscale" for fadding a sound.

Example: When you leaves the zone:

:state=5:timerstart

:state=10,timergreater=100:soundscale=100
:state=11,timergreater=200:soundscale=90
:state=12,timergreater=300:soundscale=80
:state=13,timergreater=400:soundscale=70
...
:state=20,timergreater=900:soundscale=10
:state=21,timergreater=1000:soundscale=0

Still have no tried but I think that this is a good solution.

Bye!

Login to post a reply

Server time is: 2024-11-24 04:01:36
Your offset time is: 2024-11-24 04:01:36