I am building a word search game in Storyline and have a variable question. I've set the module setup to where a person looks for a word, when found the user clicks the word and a highlight effect layer appears over the word. I would like to be able to show another layer when all the words have been found.
How would I set a variable to trigger, once a certain number of the layers have been revealed?
Hi there Joshua! Thanks for reaching out! Are the highlight effects for each of the hidden words on separate layers? Would you mind sharing your file here so I can see what you've got set up so far?
The easiest way is to increment a numeric variable each time the user finds a word and clicks on it. Then use this trigger: Show layer AnotherLayer when numeric variable changes if numeric variable > = (Don't forget Jurassic Park!) number of names.
Easiest, but not accurate, because it adds to the count every time the user clicks, even if they click on a previously found name.
Most accurate way is to set a T/F variable for each name. When the layer for that name shows, have it set the variable to True. Keep the numeric variable and increment it, then use this trigger: Show layer AnotherLayer when numeric variable changes if Jouhua = True AND Katherine + True, etc.
Thanks for sharing your file here! Since you have your highlighting effect on layers, I'd agree with Walt in using a T/F variable for each name. You can read a bit more about variables here. Good luck on the rest of this project! I'd love to see the finished product once it's complete!
5 Replies
Hi there Joshua! Thanks for reaching out! Are the highlight effects for each of the hidden words on separate layers? Would you mind sharing your file here so I can see what you've got set up so far?
The easiest way is to increment a numeric variable each time the user finds a word and clicks on it. Then use this trigger: Show layer AnotherLayer when numeric variable changes if numeric variable > = (Don't forget Jurassic Park!) number of names.
Easiest, but not accurate, because it adds to the count every time the user clicks, even if they click on a previously found name.
Most accurate way is to set a T/F variable for each name. When the layer for that name shows, have it set the variable to True. Keep the numeric variable and increment it, then use this trigger: Show layer AnotherLayer when numeric variable changes if Jouhua = True AND Katherine + True, etc.
Interesting! Thank you for the insight Walt!
Hi Alyssa! I have attached my working proof for review. Thanks!
Thanks for sharing your file here! Since you have your highlighting effect on layers, I'd agree with Walt in using a T/F variable for each name. You can read a bit more about variables here. Good luck on the rest of this project! I'd love to see the finished product once it's complete!
This discussion is closed. You can start a new discussion or contact Articulate Support.