I followed the video, checked it, then tried making the variables public, that didn’t work
I’m still new to header files and would like to know what else I could possibly try
The variables work in the two functions we started with, but then it doesn’t recognize them when I move them to the new function
Code:
.h file
…
// Your declarations go below!
private:
FString HiddenWord{""};
int32 WordLength{0};
int32 Lives{0};
.cpp file
…
void InitGame()
{
//HiddenWord will be random at some point
HiddenWord = TEXT(“Cake”);
//corresponds to random word
WordLength = 4;
Lives = WordLength;
}