What is the best pattern to bind data-driven quiz options to a Rive State Machine.
We’re building a dynamic quiz (questions/options come from data).
- In Rive, each option has its own interactions: hover / unhover / selected / correct / wrong. Because the correct option is dynamic, every option contains both “correct” and “wrong” timelines in Rive. How do we map Correct / wrong answer in the code?
Goal: from code, map the dynamic quiz data to the Rive file, listen to events/state changes, and play the correct/wrong outcome for the picked option so we can score it.
Attaching the .rev file.