EASY UNREAL ENGINE MOVEMENT || Unreal Engine Tutorial

EASY UNREAL ENGINE MOVEMENT || Unreal Engine Tutorial

Subscribers:
4,790
Published on ● Video Link: https://www.youtube.com/watch?v=8xz7wjvJ4iE



Category:
Tutorial
Duration: 11:23
1,996 views
36


In this video, Emily shows how to program player movement in C++ for the Unreal engine. Stick around and subscribe if you want to learn the unreal engine, and how to make a simple escape room game.

If you would like to use our assets to follow along, they are available here for free: https://opengameart.org/content/escape-room-pack

If you have any questions join us on discord or comment below!

Join our discord server! https://discord.gg/6mgJjTh

Follow us on Social Media!
Instagram: https://www.instagram.com/keysmashstudios/
Twitter: https://twitter.com/KeySmashStudios

Code in Video:
Character_Controller.h
#pragma once

#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "GameFramework/Actor.h"
#include "GameFramework/Character.h"
#include "Components/InputComponent.h"
#include "Character_Controller.generated.h"

UCLASS()
class ESCAPEROOM_API ACharacter_Controller : public ACharacter
{
GENERATED_BODY()

public:
ACharacter_Controller();

protected:
virtual void BeginPlay() override;

public:
virtual void Tick(float DeltaTime) override;
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
void Horizontal_Movement(float axis);
void Vertical_Movement(float axis);

}

Character_Controller.cpp
#include "Character_Controller.h"

ACharacter_Controller::ACharacter_Controller()
{
PrimaryActorTick.bCanEverTick = true;
}

void ACharacter_Controller::BeginPlay()
{
Super::BeginPlay();
}

void ACharacter_Controller::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}

void ACharacter_Controller::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);

InputComponent->BindAxis("MoveX", this, &ACharacter_Controller::Vertical_Movement);
InputComponent->BindAxis("MoveY", this, &ACharacter_Controller::Horizontal_Movement);

InputComponent->BindAxis("CameraSide", this, &ACharacter_Controller::AddControllerYawInput);
InputComponent->BindAxis("CameraUp", this, &ACharacter_Controller::AddControllerPitchInput);
}

void ACharacter_Controller::Horizontal_Movement(float axis)
{
if (axis)
{
AddMovementInput(GetActorRightVector(), axis);
}
}

void ACharacter_Controller::Vertical_Movement(float axis)
{
if (axis)
{
AddMovementInput(GetActorForwardVector(), axis);
}
}

Outro Music:
Track: Rival x Cadmium - Willow Tree (feat. Rosendale) [NCS Release]
Music provided by NoCopyrightSounds.
Watch: https://youtu.be/kddC4gi72UE
Free Download / Stream: http://ncs.io/WillowTreeYO




Other Videos By KeySmash Studios


2019-09-14STATUE PUZZLE || Unreal Engine Tutorial
2019-09-11OBELISKS || ARK EDITOR || Map Development Episode 17
2019-09-07UNREAL BLACK LIGHT POSTERS TUTORIAL || Unreal Engine Tutorial
2019-09-04A BETTER WAY TO CREATE A MAP? || ARK EDITOR || Map Development Episode 16
2019-08-31UNREAL INVENTORY GUI || Unreal Engine Tutorial
2019-08-28FLOATING ISLAND? PART 3 || ARK EDITOR || Map Development Episode 15
2019-08-24UNREAL INVENTORY STEP BY STEP || Unreal Engine Tutorial
2019-08-21FLOATING ISLAND? PART 2 || ARK EDITOR || Map Development Episode 14
2019-08-173D Kids Toys || AMAZING MODELS || Blender Timelapse
2019-08-14FLOATING ISLAND? PART 1 || ARK EDITOR || Map Development Episode 13
2019-08-10EASY UNREAL ENGINE MOVEMENT || Unreal Engine Tutorial
2019-08-07How to Setup Supply Drops || ARK EDITOR || Map Development Episode 12
2019-08-03GUI Blueprints and Materials || EASY Guide to Setting Up an Escape Room || Unreal Engine Tutorial
2019-07-31Picking up Small Rocks || ARK EDITOR || Map Development Episode 11
2019-07-27Blender Timelapse || 3D models for an Escape Room || Part 3
2019-07-24Making your own static meshes || ARK EDITOR || Map Development Episode 10
2019-07-20Blender Timelapse || 3D models for an Escape Room || Part 2
2019-07-17YOUR OWN ARK SKY! || ARK EDITOR || Map Development Episode 9
2019-07-13Blender Timelapse || 3D models for an Escape Room || Part 1
2019-07-10How to make caves || ARK EDITOR || Map Development Episode 8
2019-07-06EASY Rust Server Setup Guide || PC Steam 2019



Tags:
Guide How to
Unreal engine turtorial
easy
step by step
unrealengine
Unreal engine guide
Emmstr
Easy step by step
Learning unreal engine
How to unreal engine
my first game
making your first unreal game
game making guide
KeySmash
KSS
Key smash Studios
menu blueprints
help
Unreal Engine 4
unreal engine movement
how to move in unreal engine
easy movement c++
c++ movement code