Trigger JS callback on keyframe #5887
Unanswered
AdamGerthel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to call a javascript function on a specific keyframe. The use-case for me is in a game: In an attack animation, I want to inflict damage on the target when the animation "hits" its target (which happens at a specific point in the animation, i.e. a keyframe). The function called will affect a completely different component, causing another animation (health loss) to trigger.
Is it possible to do this using keyframe animations?
Beta Was this translation helpful? Give feedback.
All reactions