Download

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.
1e35f887b6c7de964c0af80cf8cfd4abe210e9ee.png

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!