-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Unable to animate using AnimatedSprite #7136
Comments
@Vivraan I think your logic for Here's an isolated example (click on the character on the right and then use the left and right arrow keys to see the animation switch). https://jsfiddle.net/bigtimebuddy/qo12kdnj/ This is not a limitation of the AnimatedSprite. In your case, this is an appropriate use. Also, for questions (not bugs) please post to the Discussion section Q&A instead. Thanks! |
Yeah, I just got acquainted with Discussions recently. Will keep this in mind. |
Awesome, will close this issue. Good luck with your project! |
Hey @bigtimebuddy I just tried your solution but I still can't get it to work. |
Yes, a discussion is good for this. |
I've tagged you in the Q&A section. I suppose I need to do more work on this. |
@bigtimebuddy Please check out #7144! Haven't seen any responses there! Apologies for tag-spamming in so many places! |
I see your tagging. I unfortunately cannot help you debug your project at the moment, sorry. Hopefully someone else will be able to chime in. Good luck and keep at it, I'm sure you'll figure it out. |
Expected Behavior
Player walking animation as in:
This.is.Mario50.2021-01-10.17-00-00.mp4
Current Behavior
Player switching animations but not changing frames in:
screen-recorder-sun-jan-10-2021-17-00-57.mp4
Often, if I change the frame using
gotoAndPlay()
, the frame is set to this index in spite of emptying the cache while refreshing.This.is.Mario50.and.11.more.pages.-.Personal.-.Microsoft.Edge.2021-01-11.12-38-14.mp4
Possible Solution
https://gitlab.com/Vivraan/mario50-pixijs/-/blob/227a18672242d9c468274e6a50c53cff1adda7f2/player.js#L63-73
Steps to Reproduce
I raised this issue as a question rather than a bug report. The commit I'm working from is this one, which summarises the repro steps.
Environment
pixi.js
version: ^5.3.7The text was updated successfully, but these errors were encountered: