Playing portions of a composition based on slider value
I have a composition and in it there are several states of a single character. At second 0 he’s standing still; at second 5 he’s running; at second 10 he’s jumping. You get the drift.
I’d like to find a way of nesting that comp and playing each of those sections using a slider. For example, when the slider changes from 0 to 1, it starts playing the running frames. When it changes from 1 to 2, he jumps. Then from 2 to 0, he’s standing still. Each time I change the value of the slider, it plays a different section until the next slider value is changed.
I know I need to somehow link my time remapping to the slider, but I can’t get it to continue playing until the next slider value changes.
Would love some help if someone has an idea!