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

[Feature Request] Parameter for number of times to play the animation #10

Open
uzumakinaruto123 opened this issue Jul 8, 2021 · 0 comments

Comments

@uzumakinaruto123
Copy link

uzumakinaruto123 commented Jul 8, 2021

Need configuration like sequence plays as boomerang but not in the loop and only once.

Planned to use callbacks onPlaying and onFinishPlaying to manually stop it after 1 iteration but does not seem to be a nice solution.

Also, the issue is these callbacks are fired for every frame/image. So, onPlaying is called 64 times when I have 60 images.

ImageSequenceAnimator(
                "assets/images/newScrollSprites", //folderName
                "", //fileName
                1, //suffixStart
                1, //suffixCount
                "png", //fileFormat
                60, //frameCount
                // fps: 60,
                isBoomerang: true,
                isLooping: false,
                isAutoPlay: false,
                onReadyToPlay: onOfflineReadyToPlay,
                onPlaying: onOfflinePlaying,
                onFinishPlaying: onFinishPlaying,
 )

Parameter like "animationIterations" which respects boomerang property would help.

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