TimelineComponent

TimelineComponent

Timeline component

Constructor

new TimelineComponent()

Members

autoStart :Boolean

If set to true, the TimelineSystem will automatically run .start() on the component when the TimelineSystem starts.

resume

Resumes updating the entities; an alias for .play

time :number

Current time, locally in this timeline.

Methods

addChannel(channel) → {TimelineComponent}

Adds a channel

Parameters:
Name Type Description
channel Channel

pause()

Stops updating the entities

setTime(time)

Sets the time on all channels

Parameters:
Name Type Description
time number

start()

Resumes updating the entities

stop()

Stop updating entities and resets the state machines to their initial state

update(tpf)

Updates all channels with the time per last frame

Parameters:
Name Type Description
tpf number