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

[BUG]: Frame callbacks being called inconsistently. #31

Open
EliteMasterEric opened this issue Feb 22, 2023 · 0 comments
Open

[BUG]: Frame callbacks being called inconsistently. #31

EliteMasterEric opened this issue Feb 22, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@EliteMasterEric
Copy link
Contributor

Adding code to set animation frame to a frame callback sometimes renders the sprite before the callback finishes. If using this technique to loop an animation in an atlas with multiple animations, this can cause the first frame of the next animation to play for a split second before the animation resets.

A workaround exists where adding "padding" frames around animations can help prevent improper frames from rendering, but a proper fix is needed.

The solution may be to add some code which prevents the sprite from being redrawn while a callback is resolving.

@EliteMasterEric EliteMasterEric added the bug Something isn't working label Feb 22, 2023
@Cheemsandfriends Cheemsandfriends self-assigned this Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants