Bull Cow extra feature

Just a couple of small changes in my game.

I changed the starting screen to give full instructions (letting users know they need to press Tab)

I also added the option to quit the game at any time by typing “quit”. Small change but as I realised after I packaged the game for my children I had to force close it otherwise.

How did you quit the game? I’ve been looking all over, and it is surprisingly difficulty to figure out. Did you use the UKismetSystemLibrary::QuitGame function?

Sorry didnt even see the question. Below is the code I used.

void UBullCowCartridge::OnInput(const FString& Input) // When the player hits enter
{
if (Input == “quit”)
{
GIsRequestingExit = true;
}
else
{
ProcessGuess(Input);
}
}

Interesting. Where’d you find GlsRequstingExit? I ended up using FGenericPlatformMisc::RequestExit(true).

A lot of Google searches from memory. Both work But I’m sure there is a difference in the usage. Offhand I can’t remember what it was I’ll see if I can find it again.

Privacy & Terms