Skip to main content
K
3mo ago

Extrange behaviour with mouse tracking (not visible on the editor, just the player)

Hi! i was making this character that, among other things, follows the mouse using targets. On the Rive editor everything seems good, but on the viewer does this weird thing where all the animated pieces seem to offset themselves for half a second (weirdly enough, just when the cursor moves fast). Also, after displacing the pieces for the first time, it can be replicated by pressing the "is tracking" input on the player.
Im using the rive app for windows 10 and playing it on a chrome browser.



https://rive.app/s/QU1ZT8XyG0C4BVI7ifq4Vw/



3 replies
K
3mo ago

Hi Yes I see. It may be a runtime problem. I'm going to see it with the engineers. Could you share the .rev file, so we can check it?

3mo ago

I've been looking through the file and I think I've found what's causing the problem. You have two align targets in the state machine. One in the listener for the pointer move and another in the listener for the pinter exit. This second is not necessary. If you delete it you will see that the file works correctly.

K
3mo ago

oh i see, thank you very much! it work flawless now.