I need a variable but mine doesn't work so far

Mar 13, 2018

I need to add a variable to my spelling game. The variable should stop the second letter "i" being triggered at the same time as the first "i". It should only allow the trigger to activate the second "i" after triggering the first "i" was completed (please see screenshot). At the moment, when the player selects the green letter "i", it activates both triggers to bring up the orange and yellow i letters together. I want the player to hit the green letter "i" twice to bring up the second (yellow) i.

I've watched webinars on variables but can't seem to get this right. Which variable should I create?

1 Reply
Alexander Salas

Hi Gerhard, 

Don't know exactly how you have designed your game but, I think I'm solving your problem by using a number variable as a counter of button clicks. if the user clicks "i" add 1 to the counter.

If the counter is greater than 2, show the second "i", Anyway, I attached a working sample with a layered approach. You could also work with hidden States.

This discussion is closed. You can start a new discussion or contact Articulate Support.