Xcode compile error

Hi,
I am very new in U4, I only need to move an actor like pac-man, but when i try to run my code in XCode I have this error.

what’s wrong?
please help me.

thanks

Hello Rikicasal :slight_smile:

I think you’re missing a header import at the top:
#include “GameFramework/InputSettings.h”

Also, the input setup should be done in AYourCharacterClass::SetupPlayerInputComponent(), instead of ::InitializeComponent()

I hope it helps!