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"

Third person shooter character/camera movement

Hey, so for starters, I'm very new to game making in general and very very new to UE4.

For my project I want to make a third person shooter. I started with the third person template and first added a crosshair to the HUD and offset the camera. Great! There are just two more main changes that I want to make to the controls for now. First is when the character is stationary, I want the character to rotate with the camera as apposed to the default which is the camera rotating around the character. The best solution I could come up with to do that was with this blueprint network

alt text

This seems to work fine, I just wanted to post it for a sanity check or if there is something better I should be doing. Also, the reason for the branch is I only want to set the character rotation when it is stationary since when it is moving the character seems to rotate in the direction of movement which is fine with one major exception, backward movement. That brings me to the second change I want to make to the controls. When the character is moving backward I want it to run backwards while facing forward as apposed to the default of running forwards while facing backwards. Again, this seems to happen because the character rotates to face the direction of movement but I can't figure out how to make him not do that in the backward direction and continue to let him do that in the forward, left and right directions. Also, I'm not worried about animations right now. I imagine that it will look like the character is moon-walking which is fine, I'll deal with that next.

Product Version: Not Selected
Tags:
more ▼

asked Jan 03 '15 at 10:20 PM in Blueprint Scripting

avatar image

tleef
11 1 1 2

avatar image Manoloon Dec 21 '16 at 02:44 PM

thanks man! this was very helpful! , the only thing that I`ve changed is not using followcamera ,and using the cameraboom !

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

0 answers: sort voted first
Be the first one to answer this question
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