✅ Solved: Reset number after click
Hello!
I’ve a customizable character but I’m struggeling with simple coding in Rive (I’m a noob with code). Everytime I click on an icon I want to change the asset so I’ve put a listener on the click and adds +1. So far so good, but I want to set a limit to the number of assets and go back to the first one when the limit is reached. After hours of playing around, I cannot figure out how to get this working? Is this even possible in Rive or does it have to coded externally? Help would be greatly appreciated, thanks!
Screen Recording 2025-09-08 at 10.31.25 AM.mov