How to do this? Character Rotation on Sideways movement

Goodday!

I’m trying to make a system where the whole character rotates towards the sideway movement (a or d) their going to and then going back to the starters rotation when a or d is released.

I’ve provided this with a picture, the arrow is the way the character is looking, to either the wall or the position their moving too.

Really glad I figured this out myself, pretty proud of it.

Only problem I’m encoutering now is that I can only walk sideways in 1 direction. When I rotate my character and then walk sideways it goes the same way as the 1 direction the character can go in.

Hi there,
It seems you just wanted to check “orient rotation to movement” and uncheck “use controller rotation yaw” inside your character BP. All calculations would be done for you without extra code.

Already tried that, results did not work for me.

Fixed it:

1 Like

Great. “Figuring out” is the best part of debugging. Keep up the good work.