zung / rokon

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

Sprite animate loop doesn't work correctly #173

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. bob.animate(0, 3, 250, 1, true);
2.
3.

What is the expected output?
the animation played once and stoped at the first frame.

What do you see instead?
the animation does not stop.

What version of Rokon are you using?
2-1-0

On which version of Android are you experiencing this?

Please provide any additional information below.
add one line in function updateAnimation() to fix it.
if(animationReturnToStart) {
    textureTile = animationStartTile;
        animated = false;    // add this line
} else {
    textureTile--;
    animated = false;
    return;
}

Original issue reported on code.google.com by wang2kk...@gmail.com on 22 Nov 2010 at 9:25