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

Spritemap.play frame parameter does not work as documented #65

Open
Blecki opened this issue Feb 5, 2012 · 0 comments
Open

Spritemap.play frame parameter does not work as documented #65

Blecki opened this issue Feb 5, 2012 · 0 comments

Comments

@Blecki
Copy link

Blecki commented Feb 5, 2012

The function header has this to say about the frame parameter

/** * Plays an animation. * @param name Name of the animation to play. * @param reset If the animation should force-restart if it is already playing. * @param frame Frame of the animation to start from, if restarted. * @return Anim object representing the played animation. */

However, it does not work. The function sets the current frame, but does not set the index into the animation.

Line 132 of Spritemap.as should read _index = frame % _anim._frameCount;

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

No branches or pull requests

1 participant