Right Mouseclick –> Create a New blueprint Class

Select Character

We Name it BP_Hero

Let’s open the Blueprint and let’s change it to your custom Character

Search for Mesh –> Skeletel Mesh Asset

and select your imported custom Character Mesh.

Next, let’s make sure you align your Cusotm Character with the capsule.

If needed, scale and move your character until it’s aligned and within the capsule.

Switch to Class Defaults

Search in the Details tab for Posses and change Atuo Posses Player to Player 0.

Let’s a Tird Person Camera to our Player Character

To do this, we are going to add within our Bleuprint a Selfie Stick. This Selfie Stick is called Spring Arm.

So let’s Click on the Add Button under the Components, and search for SpringArm. Add it.

Now, let’s add a camera for our Third Person View.

I added a CineCamera and just psitioned it behind the character. That’s the camera view you are going to use for your ThirdPerson Player Character.

After that, it’s time to work on the Inputs.

Right Mouse Click –> INPUT –> Input Action

We Create the following Input Actions:

Jump

Move

Look Around

Settings for Jump see below

Value Type is set to –> Digital (bool)

Settings for Move Around and Look Around are the Same, see below

Value Type is set to –> Axis 2D

Next, we want to setup our Inout Mapping Context

Inut Mapping Context

Right Mouse Click –> Input –> Inout Mapping Context (IMC_whatever)

Let’s double click the Inout Mapoing Context and let’s add some Mappings. First one we add is our Inout Jump.

Next we want to bind the Jump Action to the Space Bar.

Click on Trigger, search for space bar, select it and done.

Now, let’s make sure you have our BP_Hero open again.

open the Event Graph Editor

from here, select the Event BeginPlay Node and drag of the so called „Is Valid“ Utilities Node, see screenshot below.

Right Click in the empty field –> Get Player Controller

Noe let’s get an Enhanced Input Local Player Subsystem

Then connect it to the Input Object, see node connections below:

Now we are going to add the Mapping Context

Then we connect Is Valid to Execute.

In the Mapping Context, we need to select now our previously created IMC Thir Person

Now we need to call Events.

Right Mouse Click –> Select Our previous created Input Jump

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Nach oben scrollen