I am making a small project in UE5 alike to the game Starfox on the SNES. In that game the camera only move forward and not left and right or up and down with the player, the player moves around the screen instead like an arcade shooter. I have been trying to make this work but i cant figure it out and i feel like im missing something very simple. I started off with the Third Person Characters Template if that helps any.
Add a camera component to your character from the Components window on the top left like this:
Since you’re on the third person template, the third person character BP would already have a spring arm (camera boom) and a camera component (follow camera) so you can also unparent the spring arm from it by dragging the camera component over it.
Then detach it after Begin Play like this:
And set up Event Tick like this:
(Note that the orientation might be different in your case)
The default value of my variable named “Camera Relative Location” is the camera component’s default location which you can access from the viewport by navigating to the Details window while having the component selected.
And here’s the result:
Hope this helps!
Thank you so much you just saved me, I’ll make sure to keep this in mind for future project, big thanks and have a nice day.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.