Page 1 of 1

Text beeps or lip flaps don't play during choice menu

Posted: Sat Feb 12, 2022 1:54 am
by DFlimbingo
Hi! I'm using the expanded text beep system from the cookbook. Here's an example of the code I'm using:

Code: Select all

s "It's come to take our jobs."

menu:
     j "So it's an {i}evil{/i} robot!"
     "> I have a name.":
         j "WHOOOAAAA! IT TALKED!"
Both s "It's come to take our jobs." and j "WHOOOAAAA! IT TALKED!" work fine. The lip flap code and text bleep code work perfectly; however, for line j "So it's an {i}evil{/i} robot!", no lip flaps or text bleeps happen. Is it possible to change this so the sound and lip flap will play properly?

Re: Text beeps or lip flaps don't play during choice menu

Posted: Mon Feb 14, 2022 5:43 pm
by DFlimbingo
After some experimenting, I've found a form of solution, but it isn't perfect. In the code for character callbacks, adding this at the end should allow the character to talk during the choice menus perfectly fine.

Code: Select all

elif event == "end":
            speaking = name
            renpy.music.play("johnnytalk2.wav", channel="sound", loop=False)
However, this furthers the issue that now, when the character is not supposed to be talking, such as during transitions, the character will continue to speak through them. I will continue to see if there's anything I can do to fix the issue.