Right now when my character speaks, the voice loop (a repeated 1 second clip) stops as soon as the dialogue text runs out; but for some reason, the lip-flap keeps going silently until a new character is speaking, even when the text and voice loop are done.
This is my callback function:
Code: Select all
init python:
def main_callback(event, interact=True, **kwargs):
if not interact:
return
if event == "show_done":
renpy.sound.play("audio/toriel.mp3", loop="True", channel="sound")
renpy.show("Vagabond mouth_talking")
elif event == "slow_done" or event == "end":
renpy.sound.stop(channel="sound")
renpy.show("Vagabond mouth_neutral")
Code: Select all
init:
define main = Character("[forname]", image="Vagabond", callback=main_callback)
Code: Select all
image VagabondTalking:
"cc_mouth"
pause .2
"cc_mouth_open"
pause .2
repeat
layeredimage Vagabond:
always:
"cc_base"
group mouth:
attribute mouth_neutral default:
"cc_mouth"
attribute mouth_talking:
"VagabondTalking"
attribute mouth_open:
"cc_mouth_open"