A quick question. I'm experimenting with a 'terminal game'. I want the game to compare what's in a text input box, but how do I get it so that Construct checks to see if what's in the input box contains a word.

Here's an example:I want the Construct to check if the input box contains the word "sit"The user enters "sit up"

find(src, text)Find the first index within src that text occurs, else returns -1.

So, you can use find(textbox.text, "sit") and if it comes up with anything other than -1, the word sit is in there somewhere. Unfortunately, it would also find any words containing "sit", such as situation. If you wanted to make sure it was a specific word you could go with: