Issue with Embed Links and Nested Artboard Events
These same links bellow were working properly a few weeks ago, but now the Embed links are no longer functioning correctly, while the Shared links are still working as expected.
The issue seems to be that events from a nested artboard are not affecting the inputs in the parent artboard.
For example, in this setup, once the nested blue health bar is empty, it triggers an event that changes the input in the parent artboard to play the death animation. However, this is not working in the embed link.
Can you please help to fix that?
Shared link (working properly): https://rive.app/s/IJcqYOwGdUymTJsG1hmbQQ/
Embed link (Not working properly):
Hi
Looking at the Bleu healthbar layer in State Machine 1 (Main Scene artboard), I can see the exceeded max iterations is happening because Pause transitions to BleuHealth Bar, BleuHealth Bar completes and then transitions back to Pause, then Pause transitions to BleuHealth Bar again, and this cycle repeats over and over (this cycle occurs because the Position 2 input is true by default and there are no conditions on the transition back to Pause). It happens so quickly in the editor that it's hard to see unless you look at the console output.
I don't have a specific suggestion, but you may need to adjust the conditions or inputs on the transitions between Pause and BleuHealth Bar to avoid this repeating cycle.
Hi! this issue has been fixed. The embed link now works correctly.
But Chad's note about the state machine is still relevant.
Although things are working now, a state machine that exceeds max iterations at each frame can cause significant performance issues.
Hi
I'm confident the issue is that the event from the Nested Artboard is not being able to affect the inputs in the Parent Artboard. I have another file exhibiting the same problem. Strangely, this issue was not occurring a few weeks ago.
Here is the updated link with the "max iterations error" fixed. Can you please take another look?
Share link (working properly):
https://rive.app/s/chfwc0eEHkutidXc8jR0_w/
Embed link (Not working properly):
We are seeing the death animation in the share and embed links you shared today. There may be a delay in our recent updates propagating to your region. Maybe try clearing your cache and trying to load the latest embed link again?
Thank you so much guys for your support and for the advice about the state machine!