Hello,
After reviewing Runtime docs I see that you can add animations via state.addAnimation API. So this can be done after some event or state update such mouse click, key press etc . How do stop the animation?
I have a track 0 'walk' animation, and a track 1 'shoot weapon' animation. So on a key press, I would call something like:
TrackEntry te = state.addAnimation(...., "shoot", ....)
And when key is no longer pressed:
state.setEmptyAnimation(te.getTrackIndex(), 0f);
Is this the correct way?