yash0924 / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

There's no way to know when an animation is finished (2.0.3) #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
1.6

Previous engine versions have a method to capture the animation finished event, 
but 2.03 has not.

example Rokon 1.x.x

       final Sprite explosionSprite = new Sprite(x, y, explosionTexture); 
       explosionSprite.setAnimationHandler(new AnimationHandler() { 
                 @Override 
                 public void finished(Sprite sprite) { 
                         rokon.removeSprite(sprite); 
                 } 
       }); 
       rokon.addSprite(explosionSprite);                
       explosionSprite.animate(1, 25, 35, 1, false);

The problem is that in 2.0.3 version of the Engine the method 
setAnimationHandler is mising.

Expected:

Some mechanism to handle when an animation is finished

Original issue reported on code.google.com by daniru...@gmail.com on 28 Aug 2010 at 3:43

GoogleCodeExporter commented 9 years ago
Included ready for next commit

Original comment by rtaylor205@gmail.com on 5 Sep 2010 at 8:12