Skip to main content
Inspiring
October 6, 2021
Answered

Button with AA to toggle visibility of two groups

  • October 6, 2021
  • 1 reply
  • 837 views

Hi,

This one may be super easy but I may be missing the clue here...


I have two groups of objects (1. English_convo / 2. Japanese_convo).
I want to use a button to hide one while showing the other and vice versa.


Upon entry to the slide I set variable ConvoJpVis to 0 (meaning "Japanese_convo" is invisible) using an AA.

Then I create another AA for the toggle button.
(Einblenden = Show / Ausblenden = hide / Zuweisen = set)

I can switch the groups once (Group 1 is hidden and group 2 appears) but then I am stuck...I am pretty sure I messing up with changing the variable so the AA can be used indefinitely.

What am I missing?

Thanks in advance!

    This topic has been closed for replies.
    Correct answer Lilybiri

    You need two actions on two events:

    • On Enter for the slide:
           Hide Gr_1
          Assign var
    • For the Toggle button, Success event, a single decision conditional action like this one:

    Einblenden = Show,   Ausblenden = Hide

    Do NOT use the Continue (Weiter) command, it would release the playhead from the pausing point of the toggle button.

    I don't know why you wanted to use ELSE?  You need to change the variable value in the THEN part. You could have two decisions, but without the ELSE part.

    Maybe one of my recent blogs is worth reading:

    http://blog.lilybiri.com/tip-4-decisions-advanced-slash-shared-actions

     

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Brainiac
    October 6, 2021

    You need two actions on two events:

    • On Enter for the slide:
           Hide Gr_1
          Assign var
    • For the Toggle button, Success event, a single decision conditional action like this one:

    Einblenden = Show,   Ausblenden = Hide

    Do NOT use the Continue (Weiter) command, it would release the playhead from the pausing point of the toggle button.

    I don't know why you wanted to use ELSE?  You need to change the variable value in the THEN part. You could have two decisions, but without the ELSE part.

    Maybe one of my recent blogs is worth reading:

    http://blog.lilybiri.com/tip-4-decisions-advanced-slash-shared-actions

     

    Inspiring
    October 6, 2021

    Thanks a lot 

    Let me try that!