The Taker Devblog: Dynamic Rain Sound

The rain sound in The Taker pretty much functions as an ambient sound, providing some sort of atmosphere. This sound is dynamically changed based on what room you’re in in the game. Behind the scenes, there are areas with specified volumes that set a variable to the desired volume while the player is standing in them. This variable is then used to set the volume of the rain sounds with lerp, a function in Construct 2 that linearly interpolates values. That just means that changes in volume are gradual, which makes them sound a lot better.

lerp(Audio.Volume("fx_Rain"), fx_rainShouldBe, 0.05)

Fun fact: this rain sound is the third variation of the same sound we’ve used.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s