How to lock Camera X position in top down game or unparent camera from character?

Hi there UE experts!

I am currently working on a school project and I am seeking assistance with the camera functionality in blueprints.

Specifically, I would like the camera to be restricted to movement solely along the z-axis, allowing it to move forward and backward. I do not want the camera to track the character when it moves left or right. Moreover, it would be preferable for the camera to move backward when the character walks south.

Since I am still new to working with blueprints, I would greatly appreciate any guidance or assistance anyone can provide.

Thank You

You’ll have at least 2 options:

  • set the camera / springarm to Absolute Location and track its location yourself:

Close enough?

  • use the Player Controller’s Camera Manager to override what the camera is doing:

This would ignore the springarm, you technically do not even need a camera for this. This method is better if you want ultimate control, and do not wish any other elements to interfere. Perhaps you’d be making a custom camera collision system.

1 Like

Yes! this is amazing, your amazing. Thanks :grinning:

1 Like

Thanks for your help again!
It was all thanks to you I was possible to make my game:

https://www.instagram.com/reel/CuY2AkGuoei/?igshid=MmU2YjMzNjRlOQ==

1 Like

Woah! I was not expecting something like this. Brilliant idea and great execution :saluting_face:

Hats off. :1st_place_medal:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.