Skip to main content
S
3mo ago

Repeat timeline n times, n coming from the inputs

Or having variables in general in Rive. I would like an animation to be played n times, n being dynamic.

Example : In a game, a character gains +24 in health => then 24 hearts are accumulated in their gauge.

As a timeline can trigger an event, it could trigger a "-1", or "+1" to a variable "n" set by an input, and allow the user to play an animation until n reaches 0.

1 reply
S
S
3mo ago

Às inputs are already variables, we don't need another mechanism for that, but I agree, having some kind of counter would be great. Perfect would be a mechanism like expressions in After Effects, but being able to increment and decrement would have the biggest initial impact. I would extend this by the need of having the possibility to compare two inputs in conditions, not only fixed values. Together with increments and decrements, this would extend the possibilities for UI logic drasticly. So, a strong +1 from me!