Character callback 'show_done' overrides 'show'
Posted: Wed Dec 15, 2021 6:52 am
Hey, I'm using the beepy sound code for expanded text bleeps. my main issue right now is that I want a sound to start at the end of a part of dialogue, but it doesn't seem to work. This is how I set it up:
I expected 'show_done' to activate after 'show', however, all this seems to do is override the 'show' event, so only the 'show_done' beep activates. Any ideas on how I can fix this?
Code: Select all
def johnnyc_callback(name, event, **kwargs):
global speaking
if event == "show":
speaking = name
renpy.music.play("johnnytalk2.wav", channel="sound", loop=True)
elif event == "show_done":
speaking = name
renpy.music.play("johnnytalkfin.wav", channel="sound", loop=False)
elif event == "slow_done":
speaking = None
renpy.music.stop(channel="sound")
elif event == "end":
speaking = None
renpy.music.stop(channel="sound")