Page 1 of 1

Delay command not working with PlaySequence function?

Posted: Tue Apr 23, 2019 6:03 am
by _marc
Hi Tony,

I'm trying to use the Delay() command from the sequencer to add time between some dialogues. It works perfectly when the command is added in the dialogue nodes (in Articy, in my case), but with C# it seems to be ignored. My goal is to add some delay automatically, depending of the speaker, in the "OnConversationLine(Subtitle subtitle)" function, with this line: DialogueManager.PlaySequence("Delay(5)")

The debugging tells me that the sequence Delay is played by the Dialogue System, but it's ignored (the next dialogue entries are displayed before the end of the time). Is it because there is another delay sequence playing automatically (depending of the length of each dialogue entry), does it override my delay sequence?

Re: Delay command not working with PlaySequence function?

Posted: Tue Apr 23, 2019 8:34 am
by Tony Li
Hi,

The conversation's timing uses the sequence that's specifically defined for the dialogue entry. If you call DialogueManager.PlaySequence("Delay(5)") in a script, it will run in parallel, unrelated to the conversation. Instead, add the delay to the subtitle's sequence:

Code: Select all

void OnConversationLine(Subtitle subtitle)
{
    subtitle.sequence = "Delay(5); " + subtitle.sequence;
}

Re: Delay command not working with PlaySequence function?

Posted: Tue Apr 23, 2019 9:51 am
by _marc
It works (obviously...)! Thanks for your help :)

Re: Delay command not working with PlaySequence function?

Posted: Tue Apr 23, 2019 10:11 am
by Tony Li
Happy to help!