Documentation
Pause

Pause

⚠️

This page is under construction.

Pause allows you to create pause in sentences.

new Character("character 1")
    .say([
        "So you mean...",
        Pause.wait(1000),
        "I can do this?"
    ])

or a pause that requires user to click to continue

new Character("character 1")
    .say([
        "I said: ",
        Pause,
        "I can do this!"
    ])

These two are equivalent:

new Pause({duration: 1000});
// or
Pause.wait(1000);

And the following are equivalent:

new Pause();
// or
Pause;

Static Method

wait

  • duration: number - The duration of the pause in milliseconds
  • Returns: Pause

Public Method

constructor