Daniel Falci
Sign in Buy the course

How to set up a first-person character in Unreal Engine 4/5 with Blueprints

To build a first-person character you create a blank project, a Game Mode Base and a Character Blueprint, map the inputs in Project Settings, add a Camera at eye height and use Add Movement Input, Add Controller Yaw Input and Add Controller Pitch Input in the Event Graph. Keyboard keys need negative scale values for backward and left.

See the course Watch a free lesson

From the course

Taken from the hands-on project of the course; the lessons show every step on video.

How do I start the project?

How do I map the inputs?

In Project Settings, Input, there are Action Mappings (keys or buttons that act when pressed or released, such as jump) and Axis Mappings (movement along axes). Create these axis mappings:

What does the character Blueprint already have?

A Capsule component for collision, an Arrow showing the facing direction, a Mesh for a skin and a Character Movement component. Add a Camera named First Person Camera attached to the capsule, turn on Use Pawn Control Rotation so the camera rotates with the character and raise it to a height of 64 on Z, about eye level.

How do I program movement?

How do I add the character to the scene?

Either set the Game Mode as the default, with a Player Start in the level, or drag the character into the scene and set Auto Possess Player to Player 0. Both work; choose by what your project needs.

Free PDFs that go with this page

One-page guides made from the lessons, sent by e-mail.

Frequently asked questions

Why does S move my character forward?

Because the keyboard key sends 1. Give S, A and the Down arrow a scale of -1 in the Axis Mappings.

Why is the mouse Look Up inverted?

Set the scale of the Y axis mapping to -1.

What do I set as the camera height?

In the lesson, 64 on the Z axis.

Related guides

See the course