Wait with delay doesn't work

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Wait with delay doesn't work

Post 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!
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22163
Joined: Thu Jul 18, 2013 1:27 pm

Re: Wait with delay doesn't work

Post 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;
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Re: Wait with delay doesn't work

Post by Pendergast »

It works, thank you Tony ! ♥
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22163
Joined: Thu Jul 18, 2013 1:27 pm

Re: Wait with delay doesn't work

Post by Tony Li »

Happy to help!

BTW, the Dialogue System has a built-in Fade() sequencer command.
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Re: Wait with delay doesn't work

Post by Pendergast »

Damn, i didn't know ! Thanks a lot, i will try the command for sure !
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
Post Reply