Click a button and change the state of multiple objects

Nov 28, 2022

Is there an easier way to change the state of 10 objects when you click a button, then having to make a trigger for all 10.  I understand you can do this if I grouped them all together but I need them to stay individual because each one has a different hover state.  I also cant make them a different layer since they need to be in a scroll panel on the main slide.  

 

Was not sure if this was something I could do in Articulate or is there a way to do it using JavaScript.

1 Reply
Judy Nollet

I don't know JavaScript, so I can't say how complicated it might be to use that.

In Storyline, you do have to use 10 triggers to change the state of 10 objects. 

There is a shortcut for when there's a set of triggers that all need to run when any one of multiple items is clicked:

  • Create a T/F variable to track that an item has been clicked.
  • On each clickable item, add a trigger that toggles the variable. (It doesn't matter what the value is; it only matters that it changes.) 
  • For each trigger in the "set," have it run when the variable changes

Thus, you still need a separate trigger for each action in the set. But you only need one set of those triggers (instead of a complete set of triggers attached to each clickable item).