Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I might be missing something, but how do you detect whether or not the player put in the right answer to a questions? (I.E. when the secret word is apples).

(+1)

You can do this using the "Conditional Branch" event command. I usually suggest to use the "Script" section and check the variable used for registering the input. 

So you'll have:

$gameVariables.value(variable_id).toLowerCase() === "your word all lowercase". 

This way you'll make the check not case sensitive. If you need a case sensitive check remove the "toLowerCase()" function.

I'm still having issues getting what the player writes detected. Could you use the example but show what it would look like with variables placed in it? I'm clueless when it comes to scripting.