x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

Product Version: UE 4.13
Tags:
more ▼

asked Jan 22 '17 at 07:07 PM in Using UE4

avatar image

Joure
60 3 7 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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.

more ▼

answered Jan 22 '17 at 09:00 PM

avatar image

ScottSpadea
9.6k 320 205 450

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I hope this helps! alt text Check movement is on a tick: alt text 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.

more ▼

answered Jun 15 '18 at 01:34 PM

avatar image

Joure
60 3 7 10

avatar image MrAdom89 Jun 16 '18 at 10:26 AM

TOPMAN, Many thanks, did the job perfectly!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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 !!!!

more ▼

answered Jan 23 '17 at 06:22 AM

avatar image

Joure
60 3 7 10

avatar image MrAdom89 Jun 15 '18 at 11:36 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question