Page 1 of 1

Wait with delay doesn't work

Posted: Thu May 13, 2021 5:29 pm
by Pendergast
Hi Tony !

Sorry to bother you, but I have a silly question. I'm having a problem with the Delay() command: it doesn't want to wait the specified time when there is an Continue() at the same time (after, to be precise).

The idea is : it's the begining of the game, i'm ding a FadeIn and then Delay 5 seconds. There's no text because the dialogue panel is on false ; i want the node to wait 5 seconds and then goes to the next node where the dialogue will start and the dialogue panel will show.

I tried this but it doesn't work:

Code: Select all

AnimatorPlayWait(FadeIn, BlackScreen,5);
Continue();
What did I do wrong?

Thank you for your help!

Re: Wait with delay doesn't work

Posted: Thu May 13, 2021 7:07 pm
by Tony Li
Hi,

Code: Select all

Continue()
without a "@" time marker will run as soon as the node starts. Try:

Code: Select all

AnimatorPlayWait(FadeIn, BlackScreen,5);
Continue()@5;

Re: Wait with delay doesn't work

Posted: Fri May 14, 2021 9:28 am
by Pendergast
It works, thank you Tony ! ♥

Re: Wait with delay doesn't work

Posted: Fri May 14, 2021 9:39 am
by Tony Li
Happy to help!

BTW, the Dialogue System has a built-in Fade() sequencer command.

Re: Wait with delay doesn't work

Posted: Fri May 14, 2021 9:49 am
by Pendergast
Damn, i didn't know ! Thanks a lot, i will try the command for sure !