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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to fix a camera to go left and right only in 3rd person?

I'm a bit new to Unreal Engine and am attempting to learn specific functions of the camera. Would it be at all possible to fix the camera in 3rd person play (so that the character can move in all directions), but have the camera strafing left and right... basically like the old school games, where you could walk all directions along a street, but the camera was fixed to moving left and right with the character at the center of the screen at all times.

I would be editing via the Blueprints. I've been looking for a few days and haven't been able to find an exact solution. Thank you!

Product Version: UE 4.10
more ▼

asked Jan 22 '16 at 06:48 AM in Blueprint Scripting

avatar image

1 1 2 1

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

1 answer: sort voted first


I´m not sure if I understood you, but if you are inside the 3rd person template, go inside the character blue print and delete or disconnect the "mouse Input" So the camera will not move with the mouse, and will be always in the same position following the player. Check the picture below, try and let me know:

alt text

input.png (511.0 kB)
more ▼

answered Jan 22 '16 at 12:51 PM

avatar image

1.4k 54 19 60

avatar image ToxicSmile Jan 24 '16 at 01:41 AM

Thank you for the reply, FilipeTessaro. What I'm describing is making it so that the camera does follow the movements of the character, but only left to right from our perspective. While the character is at center of the screen at all times, the camera does not stick to the back of the character while they are moving like it would in default 3rd person. Instead, the camera would work like a platformer, only not flat 2D perspective, but instead at an angle from above. The difference from a regular platformer would be that instead of the character being limited to only moving straight left and right (x and y), the character can move along all the axis (z included). One classic game I could compare the camera movement to would be Streets of Rage.

avatar image FilipeTessaro Jan 24 '16 at 01:47 AM

hmm, I see, but it is like a plataformer game, first you neet to do as I told, to avoid mouse change the camera.

Then you go to the CharacterBP and change the PlayerCamera position and rotation

Try to set the camera to: x=-440, y=200 and z=100 This setup of the camera is considering that your player will go from left to right in the Y axis. But, you can rotate your camera and change positions to have the correct perspective

avatar image ToxicSmile Jan 24 '16 at 04:51 AM

I deleted the mouse inputs and adjusted the position of the camera, but when pressing play/preview, the camera is still moving behind the character as it would in the default 3D mode and is not locking the screen so that it moves from left to right. Perhaps this method would work better in platformer, but somehow freeing up the z axis movement for the character?

avatar image FilipeTessaro Jan 24 '16 at 04:01 PM


Uncheck Controller rotation, see picture:

alt text

It has to solve the problem, let me know pls

uncheck that.png (473.1 kB)
avatar image ToxicSmile Jan 24 '16 at 10:53 PM

The controller rotation appears to already be unchecked by default.

avatar image FilipeTessaro Jan 25 '16 at 11:56 AM


Sorry, I think I misunderstood you. Isn´t something like this what you want?


avatar image ToxicSmile Jan 26 '16 at 09:13 PM

That's completely fine, I probably should have provided more of a visual example. The link you provided is correct, that is the movement I've been aiming for.

avatar image FilipeTessaro Jan 26 '16 at 09:34 PM

ok, so, I just openned a new Third Person project and deleted the mouse input, nothing more...

avatar image ToxicSmile Jan 26 '16 at 10:45 PM

I didn't notice a difference when I tried that before, but I can definitely try again. Seems simple enough! Thank you for the help, FilipeTessaro.

avatar image FilipeTessaro Jan 26 '16 at 11:11 PM

no problem! Let me know pls, if worked

(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