Make a sound fade?

Get help using Construct 2

Post » Fri Feb 21, 2014 5:55 am

Ok i got this looping rain sound, the problem is it starts and ends suddenly, i just want it to mildly fade in and out, is it possible to archive that without modifying the sound itself (therefore compromising the loop) outsinde c2?
B
63
S
22
G
4
Posts: 357
Reputation: 6,503

Post » Fri Feb 21, 2014 2:53 pm

I believe I've done that before with an instance variable. When it was due to fade out I set a the variable to Time. Each tick when that variable was set, it would set the volume of the sound to Volume-(Variable-Time) or something like that. (resetting the variable when sound was low enough.) But I can't find where I did that ATM to be specific.

Another method, since it is a white noise, would be to play a separate fade out rain sound, and stop the original sound.
B
226
S
60
G
33
Posts: 902
Reputation: 39,989

Post » Fri Feb 21, 2014 8:23 pm

I was thinking about the second method, it would make the sound slightly longer and eng a bit later than when suposed, but it would definitely work.
B
63
S
22
G
4
Posts: 357
Reputation: 6,503


Return to How do I....?

Who is online

Users browsing this forum: stevenode, tarek2 and 9 guests