Displaying layers based on 2 different variables

Jan 05, 2016

I'm trying to build an interaction that simulates software in which you have a row and a column number.  You can click up or down arrows to change the row or column number from 0 to 5.  Once either the row or column number is changed, I want to display a different graphic (layer).  It's a test question so in the end I want to judge the learner's answer (say the correct answer is "2 4", meaning Row = 2 and Column =4.

So it's a 2-parter: what's the best way to swap out layers based on the learners input on 2 variables (the harder part, to me), then judge their response when they click a Submit button.  See the attached screen grab for what the interface looks like.  The 2 by 6 grid (0 to 5) changes based on learner input and different cells appear.  I have all of these graphics captured (36 graphics = 6 squared).

Thoughts?

9 Replies
Michael Hinze

Have a look at the attached (rather rough) version. I use a T/F variable as an indicator that some button (either row or column button) has been clicked. Whenever that variable changes, a layer is displayed, depending on row and column number. Using this 'indicator varaible' saves you having to replicate all triggers for each button. For scoring, I use two offstage radio buttons that are set based on the user selection (in my example the correct choice is row=2 and column = 4). This setup does require a few triggers but seems manageable. Hope that helps.

Michael Hinze

Correct, the Something Changed variable is just an indicator, it is simply toggled between True and False everytime a Up/Down button is clicked. I thought that using this indicator would greatly reduce the number of triggers, since you are then using slide triggers rather than having to replicate the same triggers for each button. Hope that makes sense.

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