Dynamically/Fade sound effects. Please Help!!

Get help using Construct 2

Post » Thu Dec 12, 2013 1:21 pm

I have been looking everywhere trying to figure this out!

In the manual about Audio in the effects section it says:

"The Set effect parameter also allows effect parameters to by dynamically set or faded during playback. Each effect also has a wet/dry mix which can be used to fade in and fade out effects."

This sounds great but how!?

As my player slows down the music slows down, that is easy to implement!

But effects seem hard to fade etc. You can use the Effect Parameter apparently, but how are you suppose to know What number which effect is anyway, it seems volume is index parameter '0' but what index number is the filter effect!?

I want to be able to increase the amount of filter (low-pass) depending on health!

Like in FPS games when you get hurt badly the sound muffles, I want a similar effect!

Can't believe in Audio it says you can use effects dynamically but then there is no explanation any where as to how!!
Posts: 16
Reputation: 1,188

Post » Fri Dec 13, 2013 1:44 pm

To dynamically fade any sound:

when you play a sound, give it a tag. A tag is simply just a name, for referring to this particular sound later.

Now, "every tick", you can set the volume of any sound by using its tag.

Set Volume function from manual in audio section:
[quote] Set volume: Change the volume of a sound. The volume is given in decibels (dB). A volume of 0 dB is original volume, above 0 dB amplifies the sound, and below 0 dB attenuates the sound. For example, entering a value of -10 plays the audio back 10 dB quieter (about half as loud).[/quote]

To dynamically fade any sound, you simply need to call set volume and change its volume in every tick.

That's the general idea.

If you need further assistance, please say so.keroberos2013-12-13 13:46:35
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
Posts: 411
Reputation: 8,469

Post » Fri Dec 13, 2013 2:41 pm

Effects only work on Chrome (in my experience). Here's an example of the gain effect:

To cover more bases, you can look at this thread:

Indexing is based on the order that you 'add' an effect. The first one here is Gain, so it is at index 0.blackhornet2013-12-13 14:42:58
Posts: 3,688
Reputation: 129,352

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests