Player only walking straight in the camera's direction

Hi,
So I’m using the enhanced input and I followed a few tutorials on how to set it up, but it isn’t working correctly. The mouse rotation works and the walking forward works. However, when I want to walk left or right with ‘a’ or ‘d’, the player walks forwards. And when I press ‘s’, the player walks backward (as expected).

Hi there,
Your setup is correct. It seems you need to uncheck “Use Control Rotation Yaw” in the character class defaults panel and check “Orient Rotation to Movement” in the Movement Component class defaults panel. Alternatively, you can find these variables with right click and search, and plug them in the Begin Play node as shown below:

Hey @L.F.A
Thanks for the response! Unfortunately, this didn’t change anything. Also, it looks like I already had all of the settings ticked correctly. Any other ideas?

Take a look at your input mapping context and confirm if both A and D keys are set with proper modifiers for IA_Move. This example is from the Third Person Template UE5.1. Another place to check is the setup in your animation blueprint.

2 Likes

Hey @L.F.A
It was the Swizzle Option. Thank you for your help!

1 Like