Resetting text variables
Jul 21, 2016
Hi, I am wondering if anyone would have an idea as to how to reset a text variable to a blank state via a trigger. I have built a hangman-type game and created a variable for each letter set to blank as default. I have the letters fill in the word when selected ie. %Avar%, %Bvar%, etc. It works fine until I get to the next word (I'm building a multiple word game). The variables are still set for those letters previously used. I tried having a trigger set for each letter used on the word to reset the variables: Avar = (blank), etc, on the feedback layer but that isn't working.
Thanks, Chris
3 Replies
Do you have screen shot of your trigger or trigger panel you can show?
Thanks Ron, but I changed the design to use states and it is working now. The template I was using had text variables, not sure why. But I think I changed it a simple,r more efficient way.
-chris
Thanks for popping back in with an update and sharing your solution as well Chris.
This discussion is closed. You can start a new discussion or contact Articulate Support.