sambaker/awe-core — Issue #2: Add new API to setAnimationCallback
Author: ericjuvetartefact
Created: 2012-02-07 03:18:44+00:00
State: open

Have the animation callback return

( delta, elapsed, iterations )

instead of

( delta, elapsed )

to show the number of times it has been called back. The first callback would be 1.

To the instancer add onCancelCallback and onEndCallback to get callbacks when cancelling or when the animation has ended.

Awe.setAnimationCallback( myCallback, myCancelCallback, myEndCallback )