Tween#onUpdateCallback()

onUpdateCallback(callback, callbackContext) → {Phaser.Tween}

Sets a callback to be fired each time this tween updates.

Parameters
Name Type Description
callback function

The callback to invoke each time this tween is updated. Set to null to remove an already active callback.

callbackContext object

The context in which to call the onUpdate callback.

Returns

This tween. Useful for method chaining.

Source code: tween/Tween.js (Line 626)
doc_phaser
2017-02-14 11:18:37
Comments
Leave a Comment

Please login to continue.