Is there a way to use the same button for multiple tasks? For example, I have a student that wants to show different images every time a button is clicked. Or, the first click hide a text box, second click play a sound, third click…and so on. Any ideas?
You can definitely have a button show a random image every time it’s clicked. I’m not sure how to make it so it does something different for the 1st, 2nd, 3rd time it’s clicked. Maybe someone else can chime in on that.
The easiest way would approach is to use a variable that starts at 0. Each time the button is clicked, 1 is added to the variable. When the variable is greater than 3 (or whatever number), it is reset back to 0. Then, each number is associated with a different task using if statements.
Do those ideas help you get started?