C++ based character wont move

I was following FPS tutorial from UE wiki page (First Person Shooter Tutorial in Unreal Engine | Unreal Engine 5.2 Documentation) but for some reason my character refuses to move.

I have made everything according to the tutorial and even redone entire thing altogether just to be sure. I have checked i have right character spawned and actions in project setting have correct name (the screens). I have placed debug line in movement functions to be sure they’re being fired when the right key is pressed and value is correctly set to 1.0 when that happens.

At this point I’m all out of ideas why character wont move. I’m pretty sure its just some basic setting but cant figure what.

My code in character class

// Called to bind functionality to input
void AMainCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);

	PlayerInputComponent->BindAxis("Forward", this, &AMainCharacter::Forward);
	PlayerInputComponent->BindAxis("Right", this, &AMainCharacter::Right);
}

void AMainCharacter::Forward(float value)
{
	FVector dir = FRotationMatrix(Controller->GetControlRotation()).GetScaledAxis(EAxis::X);
	AddMovementInput(dir, value);
}
void AMainCharacter::Right(float value)
{
	FVector dir = FRotationMatrix(Controller->GetControlRotation()).GetScaledAxis(EAxis::Y);
	AddMovementInput(dir, value);
}

192923-modes.jpg

192924-input.jpg

Like I have written answer was really really beginner’s mistake. I was so focused on editor settings and character code that I neglected to check GameModeBase class.

Error was missing line in constructor of GameModeBase class:

	Super::StartPlay();

I would still like to know why it caused that though.

Had the same problem, thanks for posting the solution!