Storyline’s Triggers make it incredibly easy to build interactivity into your course.
Let's take a look at our finished example.
View the published example | Download the source file
If you're following along, I'm working in AddingTriggers_START.story.
Adding Your First Trigger
To add a trigger to an object, select one of the following options:
- Click the Create new trigger icon in the Triggers panel
- Go to Insert > Interactive Objects > Trigger
Or, if you are working with a button that you've inserted on your slide, you can click the Add trigger shortcut that appears for that button in your Triggers panel.
The Triggers Wizard guides you through the process:
- Choose the action: Show Layer
- Select the layer to show: Layer 1
- Select when the action occurs: User clicks
- Which object triggers the action: Button 1
- Click OK
- Preview your slide
Now you have an interactive button that reveals a new layer. The process will be the same for any new triggers you create:
- What happens (actions)
- Where does it happen (slide, layer, object, character, etc)
- When does it happen (event)
Storyline makes it really easy to edit your existing triggers.
To edit a trigger, do one of the following:
- In the Triggers panel, double-click the trigger to bring up the Trigger Wizard. Then make whatever adjustments you like.
- Or, in the Triggers panel, look for any items that are editable on-the-fly (they'll appear underlined and in blue) and make your changes directly in the Triggers panel by clicking the blue underlined text and choosing from the dropdown menu. (Common items that you can edit on-the-fly in the Triggers panel include slide layers, variable values, variable operators, and states)
Copying and Pasting Triggers
When you're working with a lot of triggers, you'll likely find it faster to copy and paste existing triggers to new objects. This lets you bypass some clicking because once you paste a trigger to a new object, you can often make any needed adjustments to the newly pasted trigger by working right within the Triggers panel. Here's how it works.
- In the Triggers panel, select the trigger you just created for Button 1.
- Copy the trigger by pressing CTRL+C or by clicking the Copy the selected trigger icon.
- Select Button 2 in the Triggers panel (or select Button 2 on your slide).
- Paste the trigger by pressing CTRL+V or by clicking the Paste the copied trigger to the selected object icon.
- Update Button 2's trigger by clicking Layer 1 in the Triggers panel, and selecting Layer 2 from the dropdown menu.
Pasting Triggers to Multiple Objects
You can also paste a trigger to multiple objects in a single click. This comes in handy when you're applying the same types of triggers to multiple objects like a tabs interaction.
For example, if you're building a tabs interactions with a bunch of tabs, you can apply the Show layer trigger to a group of selected tabs.
Here's how it works:
- Create the first trigger.
- Copy one of the two triggers you just created.
- Select Button 3 and Button 4 on your slide by shift-clicking each object.
- Press CTRL+V or click the Paste the copied trigger to the selected object icon.
- In the Triggers panel, update the triggers for Button 3 and Button 4 to target the correct layers.
Pasting triggers to multiple objects is a huge time-saver. Just remember to update each trigger after you paste.
Copying Triggers by Duplicating Objects
Another workflow for copying and pasting triggers is to duplicate an object that already contains a trigger. This is often helpful when you've customized the look and the feel of a button and have multiple triggers on the button.
Download the source file
If you're following along, I'm working in DuplicatingObjects_START.story.
The project file has been started for you. It includes four slide layers and a button with two triggers. The button triggers are set to: show a layer and change the character's state:
Instead of creating a new button and adding two triggers each time, a quicker way to work is to duplicate the button four more times. The triggers carry with the duplicated objects.
- Select Button 1 and press CTRL+C to copy the button.
- Press CTRL+V four times to paste four copies of the button.
- In the Triggers panel, you can now easily update both the desired layer and character state for each button object.
With Storyline, you'll find there are many ways to achieve the same output. Understanding the multiple workflows will help you work as efficiently as possible.
You Might Also Want to Explore:
Adding and Editing Slide Layers
Adding and Editing States