Everything works perfectly for me. This is an amazing asset. I don't know if it was discussed before and I just missed it, but is there a way to have character voices play along with the sprite highlight? I have different audio beeps to play when certain characters talk but I got the error of a callback repeat. It's only when I took out one or the other is when the error is gone. I'm still new to coding, so I was wondering if having both was possible?
Viewing post in Renpy Auto Highlight comments
Hi there, Its been some months so you might have found a solution to this already, but here's how I combined multiple callbacks into one!
init python:
def beepyvoice(event, interact=True, **kwargs):
if not interact:
return
if event == "show_done":
renpy.sound.play("callback.wav", channel="beep", loop=True)
elif event == "slow_done" or event == "end":
renpy.sound.stop(fadeout=1, channel="beep")
def callbackcontinue(ctc, **kwargs):
if ctc == "end":
renpy.music.play("next.mp3",channel="sound")
def Dialogue_Gap(event,pause=0.3,**kwargs):
if event == "begin":
renpy.pause(pause)
# This is the one that combines the three callbacks into one vvv
def callbacks(event, **kwargs):
for callback in (beepyvoice, callbackcontinue, Dialogue_Gap):
callback(event, **kwargs)
#Then, my character definition:
define n = Character("Nori Kamo", callback=callbacks)