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.
-
bitgraphic
- Regular
- Posts: 54
- Joined: Fri Aug 02, 2013 8:53 pm
- Location: Japan
-
Contact:
#1
Post
by bitgraphic » Thu Dec 12, 2013 1:13 am
Is there a way to do this?
I'd like to mute my music when screen is on, and return the music back when the screen ends.
I've seen this screen language that controls mixer, but not the channel.
technically, I want this on my screen
Code: Select all
$ renpy.music.set_volume(0.0, 0.0, channel="music")
Last edited by
bitgraphic on Fri Dec 13, 2013 6:42 am, edited 1 time in total.
-
Tsapas
- Regular
- Posts: 69
- Joined: Mon Oct 14, 2013 8:18 am
-
Contact:
#2
Post
by Tsapas » Thu Dec 12, 2013 9:04 am
Try this.
Code: Select all
$ _preferences.mute["music"] = True
It mutes all music on the spot since it *should* change the game preferences, but I have no project with music at hand to test it.
-
bitgraphic
- Regular
- Posts: 54
- Joined: Fri Aug 02, 2013 8:53 pm
- Location: Japan
-
Contact:
#3
Post
by bitgraphic » Fri Dec 13, 2013 6:42 am
It works! thank you!
Users browsing this forum: Google [Bot]