-
Notifications
You must be signed in to change notification settings - Fork 194
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
Animation looping problem #216
Comments
Is that change supposed to be in |
FlxSprite::play(). |
Non-looping animations now loop properly AdamAtomic#216 I'm tired, and there are too many "ands", "ors", and "nots" for me to check the answer in my head, so I trust Camasthecat's fix. ;)
Confirm, it's working. |
Goody |
There was some discussion regarding this issue on the FlixelCommunity branch, and it seems like the function is actually working the way it should. @camasthecat - could you double check the code you were using if this was the case? If it's still not working properly, perhaps you could upload the code you were using and we can take a look at it? |
Okay I don't have access to flashbuilder or anything right now, so I'm not sure, but it seems like maybe the fix should be in FlxSprite::updateAnimation()? I'll check this out later... |
FlxSprite's looping Boolean is currently doing nothing because this in FlxSprite::play()
if(!Force && (_curAnim != null) && (AnimName == _curAnim.name) && (_curAnim.looped || !finished)) return;
Should be this:
if(!Force && (_curAnim != null) && (AnimName == _curAnim.name) && (!_curAnim.looped || !finished)) return;
With this fix a non-looping animation will actually not loop. :)
The text was updated successfully, but these errors were encountered: