This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
transitionEnd or animationEnd on sprite component #218
-
Hello! Anyway to tap into using transitionEnd or animationEnd in regards to the sprite component’s play method in order to queue up other actions after an animation ends. It would be nice to even chain animations together the do something else (call function, run code whatever) after it’s all done. Or is there a similar implementation I can use? Thanks! Ryan |
Beta Was this translation helpful? Give feedback.
Answered by
slmjkdbtl
Sep 18, 2021
Replies: 1 comment 4 replies
-
There's an player.on("animEnd", (anim) => {
if (anim === "jump") {
// ...
}
}); |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ryanmunger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's an
"animEnd"
event fired when an animation ends, I'm also adding anonEnd()
callback toplay()