✅ Solved: My HUD has 15 segments. How can I conditionally change the color based on the up/down d...

simplified_hud.riv


simplified_hud.revkybertrike-hud-rive-help.mp4

Hi I’m creating a HUD modelled after an old video game, CyberStrike2. My HUD is composed of several circles which are given a stroke and clipped to an area. I would like to conditionally show green when the power level is going up, and red when the power level is going down. I don’t know how to do that in Rive and I’m hoping to find some advice. Thank you.

When it’s charging, I want the individual segments which are changing to show as green for about 1 second. When it’s discharging, I want the individual segments which are discharging to show as red for about 1 second.

I know I can set conditions going from say 3 to 4, but what if the input number is jumping from 2 to 12? Would I specifically need to create a condition for 2→12? That would also mean I need a condition from 3→12, 4→12, 5→12, etc. That would mean I would need permutations for every possible condition change for every number. I’m hoping I don’t need to do a condition for every possible number jump.