Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

User composing strings from words in the text of the passage

Hello. I'm trying to make a game in which you're sending and receiving messages, but you can only compose responses using the words from the last message received. So, if you received a message that said "Hello, how are you," the only words you could use to compose your reply would be "hello," "how," "are," and "you." Then, depending on what message you assemble and send, you get another response, and on it goes.

So, I'm looking for a way to create a string by concatenating new words to the end of it as the user clicks on them, and then, when a "submit" button is pressed, going to the correct passage for that string. Or through some other method, this is just the most straightforward way that comes to mind. I'd also like to take clicked-on words and change their color and make them unclickable, and have a "start over" button to clear the string and restore all the words to clickability.

Anybody have any ideas as to how this can be done? I'd be hugely appreciative.
Sign In or Register to comment.