A timer-based event sequence.

Constructor

@:value({ start : true, mult : 1 })new(events:Array<SequenceEvent>, mult:Float = 1, start:Bool = true)

Create a new sequence.

Parameters:

events

A list of SequenceEvents.

mult

Optional multiplier for callback times. Useful for frame-based or music-based timing.

start

Whether to immediately start the sequence.

Variables

read onlycompleted:Bool

Whether this sequence has completed.

running:Bool

Controls whether this sequence is running or not.

Methods

destroy():Void

Clean up and destroy this sequence.