Dynamically change a converter's interpolation time and curve
Hi! I’m new to Rive and the community. I have been enjoying my firsts days learning Rive. I’m doing some proof of concepts and I want to be sure I’m following the correct Rive way to accomplish this:
I have an board with some columns and rows, and the player is on one of those board’s tiles. When the player moves, they can do it 1 one or more tiles in the same movement.
I have a View Model instance with the x and y position of the player, that information is bound to the x and y position of the graphic, with an interpolation converter. For doing the movement, I’m changing that value and it works great, the player animates to the new position. But…
Turns out I would need different times and even animation curves for that interpolation. For example, I want it to take 1 second if is one tile movement or 3 seconds if the player is moving 3 tiles… also, some times I need the player to “crash” into a tile and don’t ease out the animation when arriving to the tile. I see there is no way to bind the time or animation curve to a view model.
Is there any approach someone could recommend me to accomplish this?
Thank you!