✅ Solved: Click glitch
Hi, i have a viewport with a few buttons, each having a click animation that changes the clicked button’s color to orange, while making the others blue + scaling it up for a second. I also have 5 animations that “unlock“ those buttons.
I set up a state machine with 5 layers, one for each button. each layer contains an entry that goes to the unlock animation if the bool corresponding to the desired button is true. Then, from that unlocked animation, there’s a transition conditioned by selected_outfit’s value that plays the click animation.
All looks good in rive, but when imported and played in react, if you already clicked a button before and it became orange, if i click another, the animation does a ping-pong between the previous button’s animation and the new one. Any idea why? I attached a video and the rive editable.
Ps: i also tried adding a new trigger condition for each transition to the click animation. So in order to play, both the trigger and the value selected_outfit should fire, but didn’t work.