-
Notifications
You must be signed in to change notification settings - Fork 450
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
Add onLoop to FlxAnimationController #3216
Add onLoop to FlxAnimationController #3216
Conversation
what is the behavior when an animation has 1 frame and is set to loop? Does it fire once, never or repeatedly? What are your thoughts on |
flixel/animation/FlxAnimation.hx
Outdated
parent.fireLoopCallback(name); | ||
parent.onLoopComplete.dispatch(name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's revert this since it's how all the others work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
This reverts commit 4ffbf0b.
Currently testing this, but it will probably just repeatedly fire the callback. |
That's fine, and what I expected Lastly, thoughts on this (edited so might have missed)
|
I think that's a good change |
Should I push fix then? |
@Geokureli shouldn't there be "since 5.9.0" in the doc? |
Solves #3212 by adding onLoop signal field to the FlxAnimationController that dispatches each time the looped animation starts over.