Button Trigger State interactions

Jun 11, 2019

Hello
I have a problem with the following interaction:
When the green button is pressed (click on it), the rectangle should turn yellow.

If the rectangle is yellow and the green button is pressed again and the red button is pressed at the same time, the rectangle should turn black.

3 Replies
Ned Whiteley

Hi Dominik.

I am not sure if I have completely resolved your issue, but hopefully this will assist you.

I have created two True/False variables, GreenButton and RedButton, which start as False when the green and red buttons are in their Normal state. When either button is clicked, it toggles the respective variable such that each click changes it from False to True or True to False. I have then used the state of these variables in the conditions that set the state of the buttons.

The problem you were having with the way your triggers were set up was that the first trigger for each button would change the state to Normal when the state was Push and the second trigger would change it straight back again as its state was now Normal.

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