Page 2 of 2

Re: Continue button with bubble template

Posted: Tue Feb 18, 2020 1:21 pm
by Tetralogia
I figured out the problem, it was due to the global architecture of my code.

Thanks a lot for your help!

Re: Continue button with bubble template

Posted: Tue Feb 18, 2020 1:53 pm
by Tony Li
Glad to help!

Re: Continue button with bubble template

Posted: Wed Feb 19, 2020 10:53 am
by Tetralogia
Hi!

I'm using the OnContinue() method in my controller:

Code: Select all

void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space) && !waitTypeWriter)
        {
            standardUISubtitlePanel.OnContinue();
        }
    }
I was wondering if I could start a sequence when calling OnContinue(), instead of what I'm doing now:

Code: Select all

MyFunction()@Message(Typed)
Maybe there is a way to create custom messages?

Re: Continue button with bubble template

Posted: Wed Feb 19, 2020 12:59 pm
by Tony Li
Hi,

You can use Sequencer.Message() to send a custom message. For example, C# code:

Code: Select all

void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space) && !waitTypeWriter)
        {
            Sequencer.Message("MyMessage");
        }
    }
And a dialogue entry node's Sequence:

Code: Select all

Audio(say_continuing_now)@Message(MyMessage);
Continue()@Message(MyMessage)

Re: Continue button with bubble template

Posted: Thu Feb 20, 2020 4:32 am
by Tetralogia
Great! Thanks :)

Re: Continue button with bubble template

Posted: Thu Feb 20, 2020 8:07 am
by Tony Li
Happy to help! :-)