Movement based on camera posistion (Resident Evil style)

Hi! I’m currently working on a prototype for a fixed camera style game like Resident Evil. I currently have tank controls hooked up to the d-pad (always forward, backward turn left and right)

Now I want to bind movement based on the camera location to the left stick. so no matter which way the camera is facing the character will always move to the left of the screen if the player is pushing left on the stick and so on.

I have a variable for the current camera and from that can get actor position but i’m kind of stumped on where to go next.

What’s the best method for replicating that behavior?

You need to get camera vectors and use them as world direction for AddMovementInput actions I guess…

There are few functiins to get actor forward and right vectors, or get them from actor rotation. just drag actor reference or rotator output and search for ‘get vector’.

Kind of like this? Rotation and vectors really aren’t my strong suit i’m afraid, thanks for the reply. I’m starting to see what I have to do but I suppose I’m just struggling to figure out to spell it out in the BP

Figured out the movement, thanks for pointing me in the right direction. Stick moves you relative to camera position, now I only have to make it so the camera change doesn’t affect your direction until you stop moving :smiley:

Only problem is that I had to disable use control rotation yaw to get the player rotating properly. this means I can no longer turn on the spot with the d-pad bt at least I can while moving for now.