I have a mouse look attached to my character, which turns the character along the y-axis when moving the mouse left and right. That works fine. Now I need to add turning in place animations.
I have a 1D Blend Tree that has an idle at 0, a left turning animation at -1, and a right turning animation at 1. The animations play based on a float value from -1 to 1. What I'd like to happen is if I move the mouse left it "adds" into the float a negative value, the faster the mouse moves left the higher the negative value. If I move the mouse right it adds a positive value, and of course if there isn't any mouse movement then the float is at 0. What Actions can I use to store those values in a float?
Any help would be appreciated. Thanks!