Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
-
gazornonplat
- Newbie
- Posts: 12
- Joined: Wed May 25, 2011 12:37 pm
-
Contact:
#1
Post
by gazornonplat » Tue Jan 28, 2014 11:51 pm
I want to be able to dampen or mute all music or all sfx in game at certain times to give prevalence to the other.
Is there any way to do this without changing the volume for every channel individually?
Basically I'm looking for the equivalent of
Code: Select all
$ renpy.music.set_volume(0.5, .5, channel="channel_name")
but for a whole mixer,
not for just one channel, the reason being that I'm using many, many channels for layered ambient sound and multiple instruments (for music), so naming all the channels individually is not an option.
Thanks for your time.
-
Tsapas
- Regular
- Posts: 69
- Joined: Mon Oct 14, 2013 8:18 am
-
Contact:
#2
Post
by Tsapas » Wed Jan 29, 2014 9:56 am
Check
this thread about how you can mute/unmute the music at certain points in your script.
-
gazornonplat
- Newbie
- Posts: 12
- Joined: Wed May 25, 2011 12:37 pm
-
Contact:
#3
Post
by gazornonplat » Wed Jan 29, 2014 11:13 am
Tsapas wrote:Check
this thread about how you can mute/unmute the music at certain points in your script.
Unfortunately this doesn't
quite work, I'm only looking to dampen the audio, not mute it entirely.
Is there perhaps some way to invoke
or
from in-game?
-
Tsapas
- Regular
- Posts: 69
- Joined: Mon Oct 14, 2013 8:18 am
-
Contact:
#4
Post
by Tsapas » Wed Jan 29, 2014 11:45 am
Ah right, because you mentioned mute as an option in the first post.
To dampen it try
Code: Select all
$ _preferences.set_volume("music", 0.5)
Users browsing this forum: Google [Bot]