-
Notifications
You must be signed in to change notification settings - Fork 435
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 frames out of order on Flash but not Windows #1926
Comments
if you set prefix parameter in Of course we could make So what should we do: |
we can achieve desired result with regexp. This is what i got now
|
i know that it could be improved, but unfortunately i'm a total newbie with regular expressions |
updated method in my snippet, so it returns correct result |
That doesn't sound right... We should look into that. |
@Gama11 i'll make example project for this behavior across different targeys, but in context of this issue this code works as expected (as i would expect it to work), it's just user's misuse of method parameters in my opinion |
The behavior is now consistent across platforms. You should still make sure to supply correct a correct |
The behavior when Std.parseInt() fails (because of incorrect prefix or postfix input values) was inconsistent. On Neko it crashed, on Flash the sorting order changed. closes HaxeFlixel#1926
flash only
Open the TexturePackerAtlas demo, and unzip libgdx.zip into
assets/libgdx/
.Then replace MenuState.hx with this:
Observed behavior:
On Windows, the sequence is normal.
On Flash, I see the frames (with visuals to match) go by in this order: 3-1-2-0-4-5.
Expected behavior:
I'd expect Flash to also go 0-1-2-3-4-5.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: