rive-cpp-legacy icon indicating copy to clipboard operation
rive-cpp-legacy copied to clipboard

Add support to play multiple timelines at the same time

Open BitBarrel opened this issue 2 years ago • 0 comments

Currently, you can only play or pan (scrub) one timeline (not state machine) at a time. I need to play (or set the exact position) of multiple timelines simultaneously.

There might be conflicts if other timelines write to the same properties, but I will make sure only one timeline writes to the same properties.

I am aware this can be done using joysticks and blend modes, but that requires a lot of extra work in Rive (two extra timelines, one joystick, and set up a state machine blend mode for each animation, and I have many, many animations). It would be easier if I could just pan/scrub multiple timelines in code instead.

BitBarrel avatar Dec 18 '23 06:12 BitBarrel