Timeline is end too soon

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Itzeusmti
Posts: 2
Joined: Sat Sep 21, 2024 9:45 am

Timeline is end too soon

Post by Itzeusmti »

Hello, I'm currently using a command like this to play Timeline

Timeline(play,Timeline000)->Message(Done);
Continue()@Message(Done).

If the player leaves the game window (e.g. Alt+Tab) while the timeline is playing, the timeline will pause.
and when the player returns to the game window, the Timeline will continue to play.
This is the behavior I expected

However, I found that if the player does the above, the Timeline will end too soon.
And the “lost time” seems to be equivalent to the “time when the player leaves the game window”.

How can I change this to avoid the problem of the Timeline ending early?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Timeline is end too soon

Post by Tony Li »

Hi,

The Timeline() command gets the duration of the timeline and waits for that duration. By default, it uses realtime (i.e., real world clock time). If you want to handle pausing, inspect the Dialogue Manager GameObject and set Dialogue Time Mode to Gameplay.
Itzeusmti
Posts: 2
Joined: Sat Sep 21, 2024 9:45 am

Re: Timeline is end too soon

Post by Itzeusmti »

This solved my problem perfectly.
Thank you very much.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Timeline is end too soon

Post by Tony Li »

Glad to help!
Post Reply