Nazariglez / pixi-tween

pixi-tween is a plugin for Pixi.js v3.0.8 or higher to create tween animations.
MIT License
98 stars 39 forks source link

how to setting up a callback function? #10

Open lafing opened 7 years ago

lafing commented 7 years ago

how to setting up a callback function?

AllTerrainDeveloper commented 6 years ago

Hello, just define it in this way:

yourTweenObject.on('your event', yourCallbackFunction);

'your event' can be the following ones:

Refer to the documentation for detailed explanation on each event. https://github.com/Nazariglez/pixi-tween#events