I am working on a walk able character and for now I have two actions: idle and walk.
the walk action is a full walk cycle set, with 24 key frames.
I was wondering how can I play a step sound exactly on the key frame where one of the legs touch the ground, and trigger a slightly different step sound when the other leg does it.
The only way that imaged to this is to split the walk action into two different actions: one for the left leg step and other for the right leg. Thus, when one action is over, play a sound and trigger the next animation. However, I’m not sure how to implement this solution for a continuous walk, when the player holds the walk button.
I only changed slightly, because using parallel, it was hard to guess the exactly delay time.
Instead, I used sequence, with the walk cycle split into two steps