trananh1992 / rokon

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

Manual stop sprite animation #131

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output?
-Need to stop animation of sprite manually

What do you see instead?
-there is no method sprite.stopAnimation() or something else

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
2.1

Original issue reported on code.google.com by cih.exe...@gmail.com on 3 Aug 2010 at 7:44

GoogleCodeExporter commented 8 years ago
You can get the current texture tile, and then initiate another animation with 
just one frame (the current one), and no repeats.

Original comment by necrotic...@gmail.com on 3 Aug 2010 at 7:56

GoogleCodeExporter commented 8 years ago
this is a good workaround, but i think stopAnimation feature should be 
implemented

Original comment by cih.exe...@gmail.com on 3 Aug 2010 at 7:59

GoogleCodeExporter commented 8 years ago
my way: extends sprite, add new function maybe named "stopAnimation", like this:
public void stopAnimation()
{
    animated = false;
    setTextureTile(integer);
}

Original comment by rayjun...@gmail.com on 4 Aug 2010 at 12:33

GoogleCodeExporter commented 8 years ago
i call my stopAnimation function to stop loop animation

Original comment by rayjun...@gmail.com on 4 Aug 2010 at 12:37

GoogleCodeExporter commented 8 years ago
Added, sorry it's a bit late :P

Original comment by rtaylor205@gmail.com on 8 Aug 2010 at 5:17