Hi,
The typewriter sends a sequencer message "Typed" when it's done. It's commonly used like this:
Code: Select all
AnimatorPlay(Talk);
AnimatorPlay(Idle)@Message(Typed)
The first line tells the speaker's Animator to play the "Talk" state. The second line waits until the typewriter sends the sequencer message "Typed"; then it tells the Animator to play the "Idle" state.
Side note: An improved version of that sequence is:
Code: Select all
AnimatorPlay(Talk);
required AnimatorPlay(Idle)@Message(Typed)
The 'required' keyword guarantees that AnimatorPlay(Idle) plays even if the player skips ahead before the typewriter is finished.
The
Dialogue System Extras page has an updated Bolt Support package with a new BoltEvent() sequencer command that you can use to accomplish something similar. (Future readers: If you're using DS 2.2.21 or higher, the sequencer command is already in the regular Bolt Support package.)
The syntax is:
BoltEvent(event, [subject])
The subject is optional. If omitted, it sends the event to the Bolt machine on the speaker. Example sequence:
Code: Select all
BoltEvent(DoneTyping)@Message(Typed)
If your Bolt machine handles a custom event named "DoneTyping", it will get this event when the typewriter is done.