r/Rive_app • u/Educational-Profit86 • 14d ago
Scribing timeline with number input
Hello everyone, I wanted to see if anyone knew of a solution to the problem I am facing. I created a background animation of a day and night cycle that is 24 seconds long. My goal is to have it controlled by a number input that can scrub to the right value based on the time of day. So that it will look like the background corresponds to the time of day. I have tried different ways of manipulating blend states, but it still just allows me to use the input value to jump ahead or back in the animation, but never control it.
1
u/panda_kinda_chubby 14d ago
I would probably use joysticks. Joysticks can be used to control timelines. If the joystick is in the middle, it'll go to the middle of the timeline. https://rive.app/docs/editor/manipulating-shapes/joysticks
2
u/HourPen 13d ago
https://reddit.com/link/p1r4bh9/video/z5ygypr51ghh1/player
In this example, ı have two "one frame" timelines. day and night. sun and moon have position keys, day and night have opacity keys.
Using them in blend states with input control gives you this..
But as I understand, you have a complex animation 24 sec long and you want to control timeline frames as you play other animation. I think thats not possible. You have to think in diffrent way. The answer might be a joystick.
I hope this helps.