HI. I'm having the Next button change states between enabled and disabled (as a visual cue that the learner needs to click the Next button) when the timeline ends. I have to use the player next button and not a custom button. I'd like the button to "flash" until it is clicked.
Hey Vanessa, yes this is possible. There are a few different ways of doing it but using a variable that is set to a random like number is an easy way to do it.
To get the random like number you can use a very short simple animation that loops to add to a variable. You basically set up a trigger that adds 1 to the variable every time the animation completes until it reaches a certain value.
Then when it reaches the value you max it at, you set it equal to 1 and let it start over.
Next you need to set up the states for your object and when the user clicks (or does whatever you want the triggering action to be) it sets another variable equal to the random like number at the time it is clicked.
Then you have another group of triggers set to tell the object to display the state that you decide relates to the number grabbed.
6 Replies
I don't believe there's a way to continuously change states. Wonder if there's a different approach if we knew a little more about your overall goal?
HI. I'm having the Next button change states between enabled and disabled (as a visual cue that the learner needs to click the Next button) when the timeline ends. I have to use the player next button and not a custom button. I'd like the button to "flash" until it is clicked.
Hey Vanessa, yes this is possible. There are a few different ways of doing it but using a variable that is set to a random like number is an easy way to do it.
To get the random like number you can use a very short simple animation that loops to add to a variable. You basically set up a trigger that adds 1 to the variable every time the animation completes until it reaches a certain value.
Then when it reaches the value you max it at, you set it equal to 1 and let it start over.
Next you need to set up the states for your object and when the user clicks (or does whatever you want the triggering action to be) it sets another variable equal to the random like number at the time it is clicked.
Then you have another group of triggers set to tell the object to display the state that you decide relates to the number grabbed.
Let me know if this make sense?
Brilliant. I forgot about random number! I'll give it try. Thanks.
Had some extra time on my hands so I put together a quick working example. Let me know if this works for you.
This works great. Thanks for your quick help!
This discussion is closed. You can start a new discussion or contact Articulate Support.