Oh, I see. I think Djdino forgot to set the speed value.
Basically. You need one state with:
1) Get axis (as configured in Unity’s input manager), usually “Horizontal” and “Vertical”. That means, two actions. Every frame. They get values from -1 to 1, and 0 means no input (or stick middle position).
2) When you would set the axis to speed, you have two issues: first, your character would move only with speed 1 (as that’s what the axis return). So you need to multiply the value with your desired speed.
But there’s another problem and that’s the character would move faster diagonally, because the vector 1/1 (i.e. moving top right) is greater than 1. To solve this, you need to normalise the vector first so it’s never greater than 1. There is apparently an action for this (if not check forum/ecosystem, which is a free add-on browser to install extra actions).
I guess to use this, you would actually first write the axis float variables into a vectorXY (Z) so you have a vector, then you send this vector into the normalize vector action to get a clean, good vector that is diagonally correct, too.
3) Then you need to multiply the direction with your desired movement speed. Say, 5. I guess there’s a vector multiply, or you might convert the values back to floats.
4) Now you have a good value coming out, and that goes into e.g. set velocity or set speed (?) as in DjayDino’s example. But you would SET it.
5) all of this is in a single state and every frame. Your character should move now.
6) then, finally, to also play the correct animation, set animator float and use your original axis values. You can check in the animator parameters if the values are coming in there correctly. So if the animation is not correct yet, you know you need to fix something in the blend trees etc.
Some of this seems complicated at first, the core idea is this: you get the input into a value and then you set it into an action that moves the character around. And independent of this, you also set the value into the animator so it “knows” when you move.