Button Text - Cycling through button text

Mar 11, 2021

Hi, I am pretty new to storyline. I have an idea to have the text on a button cycle through 6-8 languages. For example, the button text for the word "continue" cycles through english, italian, japanese, chinese, hindi or any language really. This would cycle until the button is interacted with.

I realise there is a potential to use javascript, however I want to see if there is a way to achieve this in storyline with a builtin function/method. BTW, I have cycled through dozens of tutorials trying to find one that gives me some guidance, no luck.


3 Replies
Maria Costa-Stienstra

Hi, Brk, and welcome to E-Learning Heroes! ✨

Here's a suggestion on using the timeline and timings to achieve something similar to what you want.

  • Create the buttons to represent each language.
  • On the timeline, have them appear one after the other.

Windows 10 (1) 2021-03-12 at 3.50.29 PM

  • Create a trigger to jump to time 0s when the timeline ends (this will force the timeline to loop).
  • Create the layers to represent each language. You can also use slides.
  • If you are using layers, make sure the layer properties are set to pause the timeline of the base layer. This will prevent the button from cycling through if the user selected a language. 

Windows 10 (1) 2021-03-12 at 3.54.05 PM

  • Add the triggers to the buttons to show the specific layer when clicked.
  • Place the buttons in front of each other on the base layer.

I am attaching a sample .story file with four buttons.

Let me know if this works!

Brock Shears

Hi Maria, thank you for the welcome and the information. I have achieved the cycling of the button text in the attached example. I didn't give enough information in my first request I think. I don't need the individual text instances to lead to a different language option, clicking on the button at anytime would just take the user to the next single slide. (I am not sure how that fits with the setup you have in the example file)

I haven't found a way to do that in triggers. I initially tried to use layers to achieve the result but became lost in the options.  I am actively following a few courses/tutorials and learning, but haven't worked this one out.

I have started the button timeline at 3 secs as the intent was to have a title graphic fly in at 1 sec. I didn't include that as part of the attached file.

Throwing this one back out there for any suggestions/solutions/possible or not.

Thank you

Maria Costa-Stienstra

Hi, Brk.

Thank you for the details and for sharing your .story file! 

What you're looking for can be done the same way as layers, but for slides instead. If you add a trigger to each button to Jump to the Next Slide when the user clicks the button, you can either have one slide for all languages to go to or separate slides for each language.

Another option is to create a variable that will let you use the language choice at some point during the course, not necessarily as soon as they click the button. 

I recorded a short Peek 360 recording with that option, and I'm also attaching an edited version of your file.

Let me know if this works!