Page 1 of 1

End animation/Conversation After sound ends

Posted: Wed Dec 04, 2024 2:15 pm
by hrohibil
Hi Tony

How do I end a conversation as soon as the sound is completed?
When I say sound i mean I added a sound clip into a conversation.

Re: End animation/Conversation After sound ends

Posted: Wed Dec 04, 2024 2:56 pm
by Tony Li
If you're playing a sound using AudioWait(), then:
  • If you don't require the player to click a continue button, set the Sequence to:

    Code: Select all

    AudioWait(yoursound)
  • If you do require a continue button click, set the Sequence to:

    Code: Select all

    AudioWait(yoursound)->Message(Done); Continue()@Message(Done)
This assumes (1) the name of your audio clip is "yoursound", and (2) this is the last node in the conversation. If it's not the last node and you still want to end the conversation instead of progressing to the next node (which doesn't really make sense to):

Code: Select all

AudioWait(yoursound)->Message(Done); StopConversation()@Message(Done)