Skip to main content
Version: Phaser v4.0.0-rc.6

Phaser.Time.Events

Scope: static

Source: src/time/events/index.js#L7

Static functions

COMPLETE

COMPLETE

Description:

The Timeline Complete Event.

This event is dispatched by a timeline when all of its events have been run.

Listen to it from a Timeline instance using Timeline.on('complete', listener), i.e.:


const timeline = this.add.timeline();

timeline.on('complete', listener);

timeline.play();

Parameters:

nametypeoptionaldescription
timelinePhaser.Time.TimelineNoA reference to the Timeline that emitted the event.

Source: src/time/events/COMPLETE_EVENT.js#L7
Since: 3.70.0