Seperate events on multiple taps?

Abramax 17 shared this problem 2 months ago
Solved

How do you make events occur on different taps without the first tap triggering the next tap event? lets say I want to show a button on first tap and then stop, after that if I tap again it'll show another button. My attempts on achieving this has failed because the first tap always trigger the next event.

Best Answer
photo

You'll need to create Conditions for each action. The easiest condition is to check and see if the buttons are visible (shown) on the Canvas. We've created a quick example to show how:

1. For the first action that shows the first button, click the 'Add condition' text. In the Conditional Expression builder, drag the first button into the open space. There will be a text dropdown under the element - select the 'is Visible' option. Then, drag a 'Not' function in front of it. This will check when the Button is NOT visible, and if it isn't, it will trigger the action. Click 'Ok' to finish building the expression.

2. Click the 'Else add condition' text for the second action. Drag the first button to the open space in the expression, selecting the 'Is visible' option from the dropdown. Then, drag an '&' function to its right. Then, drag a 'Not' function next to that. Finally, drag the second button to the open space and select the 'Is visible' option from the dropdown. This checks to see if the first button is visible and if the second button is NOT visible, and if so, will trigger this action.

We have a third button in our example, and there's no need to create a condition to show it.

Comments (3)

photo
2

You'll need to create Conditions for each action. The easiest condition is to check and see if the buttons are visible (shown) on the Canvas. We've created a quick example to show how:

1. For the first action that shows the first button, click the 'Add condition' text. In the Conditional Expression builder, drag the first button into the open space. There will be a text dropdown under the element - select the 'is Visible' option. Then, drag a 'Not' function in front of it. This will check when the Button is NOT visible, and if it isn't, it will trigger the action. Click 'Ok' to finish building the expression.

2. Click the 'Else add condition' text for the second action. Drag the first button to the open space in the expression, selecting the 'Is visible' option from the dropdown. Then, drag an '&' function to its right. Then, drag a 'Not' function next to that. Finally, drag the second button to the open space and select the 'Is visible' option from the dropdown. This checks to see if the first button is visible and if the second button is NOT visible, and if so, will trigger this action.

We have a third button in our example, and there's no need to create a condition to show it.

photo
1

Thanks Danielle your reply game is lightning fast! it worked flawlessly, and your file made it so easy to understand for a non programmer like me.

photo
1

Thank you! Glad to hear this was useful, I'm happy to help.

photo