Phaser API Documentation

  Version: 
setCallback(type, callback, [params], [scope])

Description:

Sets a callback for the Timeline.

Parameters:

name type arguments description
type string

The internal type of callback to set.

callback function

Timeline allows multiple tweens to be linked together to create a streaming sequence.

params array <optional>

The parameters to pass to the callback.

scope object <optional>

The context scope of the callback.

Returns:
Description:

This Timeline object.

Examples:
Since: 3.0.0
Source: src/tweens/Timeline.js (Line 581)