Hum... I got confused abou this.
What "calls" the song menu is this (there's an image of a song icon that shows up on the screen):
Code: Select all
screen songiconbutton():
imagemap:
ground "songaction.png"
hover "songaction2.png"
hotspot(0, 0, 49, 49) action ToggleScreen("audioicon")
And this is the sound menu:
Code: Select all
screen audioicon():
add "audiobg.png"
frame:
style_group 'status'
align(0.5, 0.5)
has vbox
textbutton "Light rain" action Play("sound_2", "rainsound.mp3")
null height 10
textbutton "Storm" action Play("sound_2", "storm.mp3")
null height 10
textbutton "Day sound" action Play("sound_3", "daysound.mp3")
null height 10
textbutton "Night sound" action Play("sound_3", "nightsound.mp3")
null height 10
textbutton "PAUSE ALL" action [PauseAudio('sound_2', value='toggle'), PauseAudio('sound_3', value='toggle')]
null height 10
As you can see, the sounds are in different channels (so you can combine some of them playing together).
Let's say I was playing "Storm" and "Night sound" together. The first time you choose "PAUSE ALL" it works.
Then you choose another sound, like "Light Rain". When you click "PAUSE ALL", instead of it pausing all, it goes back to playing the previous audios you chose.
I understand why Renpy is doing it, I just don't know how to fix that.
I tried using the codes above but I failed
My game I already so full of "difficul codes" that I get confused hah
ps: I decided to remove the "value='toggle'" and now it stops all
At first I wanted "toggle" so that the button would be a "pause/unpause" buttom, but I think I will let it work as a "stop button" only. It's less complicated.
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.