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
67
S
23
G
4
Posts: 365
Reputation: 6,721

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
255
S
65
G
34
Posts: 907
Reputation: 41,611

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
67
S
23
G
4
Posts: 365
Reputation: 6,721


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests