How to make stop/run animation in top down game

I watch this video but it is for third person shooter. At 2:55 I need to make a node that I don’t have.

I did the rest as it is in the video and tried to cast to the player blueprint and from the cast to set the speed variable. However it seems always to be 0 because when I move my character around he is always in idle state and never perform the run animation.