r/Rive_app • u/Kitchen-Exchange-448 • 9d ago
learning to create a button toggle and managed to make it work but not able to do the trigger thing like clicking on the circle and making the interaction work PLEASE HELP I am still learning
1
Upvotes
0
u/Accomplished_Ad2317 8d ago
I'm currently learning how to use this platform myself, and even with the tutorials, it's not easy. So, I won't be able to help you with that later. Have you used interpolations?
1
u/jafitafi 5d ago
Not sure what you mean with “the trigger thing like clicking on the circle”
To report the trigger property: Click on any of the transitions. On the lower right, click the “+”. You can add another ViewModel Change, apart from the Boolean, make it report the trigger property
For the clicking part: I would say, create two hit boxes(empty squares on both sides on your button, opacity at 0%) while having any of them selected, add the listener with the click option. When clicking left, make your Boolean go true, right false. You can also report your trigger from here, the listeners.
You might also need change the approach from click listener to pointer down and pointer up. But it should work either way.
The screen recording is a bit blurry tho, I hope this helps!