Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite animate loop doesn't work correctly #173

Open
GoogleCodeExporter opened this issue May 1, 2015 · 0 comments
Open

Sprite animate loop doesn't work correctly #173

GoogleCodeExporter opened this issue May 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 22 Nov 2010 at 9:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant