Skip to content

Wait ​

Makes the game wait for a while before continuing

Parameters ​

NameTypeOptionalDescription
timenumber | () => number❌Time in milliseconds

Usage ​

ts
engine.script({
  start: [engine.action.wait(500), engine.action.wait(() => 100)],
});

Released under the ISC License.