Retain Player Movement On Camera Switch

Hello,

So I’ve been trying to figure out how to retain player movement after a camera switch. I’m using the “Classic Survival Horror Camera System” I bought from the store. By default it has the “tank control scheme” which is fine, but I’m trying to set up the control scheme from the PC version of the Resident Evil Remake.

What I’m trying to achieve is that the player direction carries over from the last camera angle to any number of camera changes as long as the player is still holding the last input on the thumb stick before the camera change and then updates to the new camera angle once the player let’s go or changes the input direction on the thumb stick.

Below I’ve uploaded an image of my current set up. I left the tank controls intact.

instead of using the camera rotation directly, store it in a rotator variable. then you can update that rotator variable to equal the camera rotation, whenever the player isn’t walking.

Ahh man, Thanks for the help I finally got it working. I took the character movement and then Get current Acceleration. I did an = equal check to 0, when true it updates the stored rotation variable.

Thank you for pushing me in the right direction !!!

Hi man, do you still have an example of the solved issue, as I’m facing the same one here :confused:

I hope this helps!

Check movement is on a tick:

I haven’t worked on this prototype for a while, lucky I still had it so you might need to go and experiment a bit on your own.

TOPMAN, Many thanks, did the job perfectly!

This is genius and it works perfectly. Amazed! I have Silent Hill 2 movement!