Creating a Trigger to Show and Hide an Object

Jan 08, 2013

I am trying to create a trigger to show an object and a trigger to hide the same object.  For example, I created a trigger on a smiley face to show a character.  Works fine!  When I created a trigger to hide the character, the chacter does not appear any more. I am not sure why this is not working.  I am just trying to create a simple trigger that allows the learner to show and hide an object.

5 Replies
Nyl Frederik Lim

Hi,

If I understand this correctly, you want two different buttons right? One to show and one to hide.

Three objects: "show" button, "hide" button, and a character.

For the "hide" button, create a trigger that would change the state of the character to "Hidden" when the user clicks the button.

For the "show" button, create a trigger that would change the state of the character to "Normal" when the user clicks the button.

Here's an example. Hope this works out well!

Greg Pierce

Thanks for taking your time to respond and for attaching an example.  Actually, I am trying to create a button on the slide.  I have an object (e.g. scrolling text box) on a layer.  I want the learner to be able to click on the button from the slide to view additional information.  When the learner clicks the button, a scrolling text box appears where the learner can view additional content.  After viewing the content, I would like the viewer to click on the same button to hide the scrolling text box. 

Basically, I am creating a pop-up box on a layer that the learner can access by clicking on a button to show and hide the pop-up box from the slide.  I don't want to have separate buttons (one to show and one to hide).  I would like to have one button that is a toggle switch that shows and hides the pop-up box from the layer.  Hope this makes sense.  I have done this many times with Lectora (a different authoring tool).  I was thinking the show/hide trigger and layers would allow me to do this in Storyline.

Nyl Frederik Lim

Oh okay. You could attach a sample so it's clearer what you're getting at. Based on what I understand, here's a possible solution:

You can have a rectangle (not a button because we're going to fake the states) on the base layer which triggers a new layer (which we'll call Layer 1) to be displayed.

Copy that rectangle and paste it on Layer 1. Modify the color so the user knows it's active (faking the states). Assign a trigger on the new rectangle to hide Layer 1 when clicked.

This is all in theory though. I haven't really tested this. Try it out and if it doesn't work, attach it here and I'll see. :p

This discussion is closed. You can start a new discussion or contact Articulate Support.