Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Add OnAnimationEnd event #57

Closed Noah2610 closed 4 years ago

Noah2610 commented 4 years ago

Event that triggers when the given animation ends.

events: {
    OnAnimationEnd(Custom("MyAnimation")):
        Echo("Animation end!"),
}
Noah2610 commented 4 years ago

Use Once animations and OnAnimationEnd events in Peeker enemy, when this is implemented.

Noah2610 commented 4 years ago

Working. Note that OnAnimationEnd events are only triggered if the animation is Once, because Cycle animations never end. So whenever you wanna do something after an animation ends, make that animation Once, push it (don't play it), and use the OnAnimationEnd event.