UNPKG

@bitsy/hecks

Version:

a collection of re-usable scripts for bitsy game maker

27 lines (21 loc) • 590 B
/** šŸ’¬ @file dialog pause @summary add pauses in between printing text @license MIT @version 1.1.3 @author Sean S. LeBlanc @description Adds a command that allows you to add pauses in between printing text. Example: (pause "1000") Note: pause times are in milliseconds HOW TO USE: Copy-paste into a script tag after the bitsy source */ import { addDialogTag } from "./helpers/kitsy-script-toolkit"; addDialogTag('pause', function (environment, parameters, onReturn) { environment.GetDialogBuffer().Update(-parseFloat(parameters[0])); onReturn(null); });