Closed karai17 closed 10 years ago
the third argument for newAnimation appears to be that: https://github.com/kikito/anim8/blob/master/anim8.lua#L171
Oh hey, there IS a callback. I'm just a moron.
Don't be too hard on yourself, that happens :) . You were using an old version of anim8, give a look at the change log and the readme!
It would be pretty swanky for anim8 to allow callbacks at the end of an animation loop. A potential use case for this would be:
Assume a sprite has many animations, including "idleLeft" and "attackLeft". Once a player uses an attack, we want to switch back to the idle animation.