Forum Discussion

FaffieKhan's avatar
FaffieKhan
Community Member
4 years ago

variable to toggle captions

Hi.

I am creating a custom navigation bar in Storyline 360. Instead of using the built-in options provided by the player, I'm creating my own buttons with triggers.

The bar will have next and previous, play and pause and the caption button on it.

I have added the variable that enables the user to turn the captions on. Can you advise me on how to create a variable that allows me to toggle between on and off?

 

Thank you.

3 Replies

  • Hi, Faffie. 

    The built-in Player.DisplayCaptions is a True/False variable. You can use a trigger to toggle it on/off when the user clicks the button:

    Windows 10 (1) 2022-02-01 at 10.08.27 AM 

    I hope this helps!