Adds one or more events to this Timeline.
You can pass in a single configuration object, or an array of them:
const timeline = this.add.timeline({
at: 1000,
run: () => {
this.add.sprite(400, 300, 'logo');
}
});
name | type | description |
---|---|---|
config | Phaser.Types.Time.TimelineEventConfig | Array.<Phaser.Types.Time.TimelineEventConfig> |
The configuration object for this Timeline Event, or an array of them. |
This Timeline instance.