I'm getting used to writing my scripts and I need a hand and I've searched but not found anything clear.
and possibly worded in a way for a person new to Ren'Py to understand would be great.
The second question is
Code: Select all
play music "mozart.ogg"Code: Select all
$renpy.music.set_volume(0.2, 0, 'music')Code: Select all
show mary_sue
with punchCode: Select all
"Marty Stu bumps into you in the lunch room."
"Oh my gosh!" with hpunchCode: Select all
$ renpy.music.set_volume(.5, 0, channel = "music")Code: Select all
scene name_of_your_background
show name_of_your_sprite
with vpunchDonmai wrote:Welcome to the forum (yes, you have come to the right place).
Okay, as a non-English speaker, I've revised my answer so many times that Trooper beat me again. Anyway, here it goes:
You can find the command to control the music volume here: http://www.renpy.org/doc/html/audio.htm ... set_volume
Basically you would do something likeIn the above example you're setting the music volume to half it's initial value.Code: Select all
$ renpy.music.set_volume(.5, 0, channel = "music")
(the $ sign is important because this is in fact a line of python code)
You can play a sound at the same time, for a great effect.
Code: Select all
$ renpy.music.set_volume(.25, 0.0, channel = "music") #music playing very low
play music cafe_song
scene outside_cafe
show your_character_sprite
with dissolve
c "Oh, they're playing a nice music there. I think I will enter."
play sound door_open
$ renpy.music.set_volume(1.0, 0.0, channel = "music") #now music plays at full volume
scene inside_cafe
show your_character_sprite happy
with dissolve
c "Wow! What a nice place!"Users browsing this forum: Bing [Bot], Google [Bot]