-
I've sprite sheet added as graphics to an Actor. when i left click i trigger attack animation. how can i detect end of attack animation? |
Beta Was this translation helpful? Give feedback.
Answered by
ufukbakan
Jul 9, 2023
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ufukbakan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found this way:
https://excaliburjs.com/docs/api/edge/types/AnimationEvents.html