Skip to content

How to trigger an action on Animation End #2689

Answered by ufukbakan
ufukbakan asked this question in Q&A
Discussion options

You must be logged in to vote

found this way:

const animation = Animation.fromSpriteSheet(spritesheet, range(0, spritesheet.columns - 1), 400 / spritesheet.columns);
animation.events.on("loop", () => { this.attackEnded = true; });

https://excaliburjs.com/docs/api/edge/types/AnimationEvents.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eonarheim
Comment options

Answer selected by ufukbakan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants