Why is my animation not working?

I have 2 screenshots, showing the player input and the blend space… On the animation / blend space the player walks in a straight line which is exactly what I want to happen. When I start the game the walk / run animation is not straight, he appears to walk at an angle.

Any ideas what could be causing this?

Thanks.

I have a feeling it could be something in the Animation blueprint event graph. Does this help anyone?

Thanks again.

It was an issue in my blueprint event graph. This link fixed it for me https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/CharacterMovement/Blueprints/AnimBlueprint_Walk/

try this:
-Open up your Skeleton
-Right click “All bones,Active Sockets” below then check Show retargeting Options
-then change root’s translation retargeting to Skeleton.

This did nothing for me, have any other suggestions?

It is probably the direction value, you set it from velocity and delta 0.0.0(null) i think it should be control rotation instead of null, try to disable the node with direction and test it, as long as direction is 0, the animation should play straight if your blendspace reads it.