How to activate running animation for my player when he is walking in the Y-axis?

I have the running animation so if the speed is greater than 0.01 it starts the running animation, but that only works for the X-axis. I know that this is probably a really easy fix, but I have been searching for about 15 min and haven’t found anything. Please help, thanks in advance!

Provide us some code. I guess you are making a top down game. I think you can just use something like if(rigidBody.velocity.magnitude > 0) { animate() }