Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I wish there was a tutorial on how to set up the secret word! I'm lost lmao, I can only get the window up and be able to type in it, but not actually be connected to a word :c 

Yeah, I'm trying to figure that out myself

(1 edit)

Hello! I'm sorry for the late reply, I lost your comment.

So, about your question. It's actually pretty simple because it's just a Conditional Branch using the Script field in the fourth page of branch configuration. 


So, if the variable where you set the typed value is the variable of ID 1 you will have this script: 

String($gameVariables.value(1)).toLowerCase() === "my secret word"

where:

  • $gameVariables.value(variableId) is the variable where the typed text is stored;
  • The String(value) constructor is needed for being sure that the content is considered a string;
  • toLowerCase() is a method that is needed to lowercase all the typed text for avoiding that capitalized letters makes the check return false (if you need a case sensitive check, just remove .toLowerCase())

Finally, your secret word inside quotation marks :)

Cheers!

Thank you so much! This actually helps a lot.