Nate wroteI had forgot to push this fix. 🙁 In now, sorry!
Mmm the exception is gone, but the event isn't fired. End, Start and Complete works without problem, but event doesn't 🙁
Tried with the same project that I attached at this post:
viewtopic.php?f=9&t=1098
The listener:
animState.addListener(new AnimationStateListener() {
public void event (Event event) {
Gdx.app.log(Game.LOG, "Event: " + event.getData().getName());
}
public void complete (int loopCount) {
Gdx.app.log(Game.LOG, "Complete: " + animState.getAnimation() + ", " + loopCount);
}
public void start () {
Gdx.app.log(Game.LOG, "Start: " + animState.getAnimation());
}
public void end () {
Gdx.app.log(Game.LOG, "End: " + animState.getAnimation());
}
});
The result:
GAMELOG: Start: animdisprotardisparo
GAMELOG: Complete: animdisprotardisparo, 1
GAMELOG: End: animdisprotardisparo