Skip to content

Wait

Makes the game wait for a while before continuing

Parameters

NameTypeOptionalDescription
timenumber | () => numberTime in milliseconds

Usage

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

Released under the ISC License.