Is there a way to see when an animation ends from a state switch?
layer.on Event.StateDidSwitch, -> ...
Thanks! That's what I was doing. Turns out something else is wrong.
Would it be possible to get a little example on this with the (currentLayer, previousLayer) options at play? For some reason every time I've tried to use this I haven't gotten it to work. But I am VERY new to scripting languages so I probably am missing something obvious.