Adjusting volume between scenes/labels?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Adjusting volume between scenes/labels?
In a few parts of my game it will be raining.
The chapter starts outside the house, and it's raining. I'll play the "rain.ogg" as a sound, or create another music channel (because there's already a song playing too).
Anyway, when they get in the house, the rain sound volume has to be turned down a little.
After, when they go outside again, the rain volume goes back o normal.
It would be like:
*label outsidehouse1= normal volume.
*label house1= lower volume.
*label outsidehouse2= normal volume again.
How do I adjust it on Renpy?
Thanks.
The chapter starts outside the house, and it's raining. I'll play the "rain.ogg" as a sound, or create another music channel (because there's already a song playing too).
Anyway, when they get in the house, the rain sound volume has to be turned down a little.
After, when they go outside again, the rain volume goes back o normal.
It would be like:
*label outsidehouse1= normal volume.
*label house1= lower volume.
*label outsidehouse2= normal volume again.
How do I adjust it on Renpy?
Thanks.
Re: Adjusting volume between scenes/labels?
Try it like
https://www.renpy.org/doc/html/audio.ht ... set_volume
Code: Select all
$ renpy.music.set_volume(0.5, delay=0, channel='my_rain_channel')
Re: Adjusting volume between scenes/labels?
Thank youAlex wrote: ↑Wed Oct 16, 2019 7:00 pmTry it likehttps://www.renpy.org/doc/html/audio.ht ... set_volumeCode: Select all
$ renpy.music.set_volume(0.5, delay=0, channel='my_rain_channel')

- Imperf3kt
- Lemma-Class Veteran
- Posts: 2714
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Adjusting volume between scenes/labels?
While the method provided by Alex works well, rain does not sound the same from inside a building as it does outside, or even inside different structures.
For extra realism, I'd consider using multiple audio samples.
For extra realism, I'd consider using multiple audio samples.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Todo list:
Actually finish a project
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Todo list:
Actually finish a project
Re: Adjusting volume between scenes/labels?
Thank you! You're right. Maybe I should try another audio for a building inside Thanks.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]