Forum Discussion

JohnJohnson-6a8's avatar
JohnJohnson-6a8
Community Member
18 hours ago

Rules for items that can be used in triggers?

Sometimes when I build a trigger, I find that the items I want to be used in the trigger aren't available to me. Use case:  Make something appear after all media (narration) has played. 

Are there any handy rules for knowing when you can use a trigger from one layer to affect another, or when elements can be used in the trigger?

Thank you

3 Replies

  • I don't have any for that directly. I do know what you mean, and it's been an annoying road (long-time user.) For what it's worth, the developers have expanded access over time. There was a time you couldn't access anything on the base layer from a slide layer. Then as now, a solution may be to rely on creating some global variables.

    Since variables can be named most anything, I'm a big fan of the idea (though not the first to have it) of creating light switches. If my base layer shows a slide layer A when a true/false variable called showLayerA changes (only if the variable has become true), then I can show that slide layer from anywhere else on any other slide layer.

    If there's an example we can help solve, that may make it more plain.

  • If you want 2 layers to interact the only means I'm aware of is creating a Variable to set the action in motion.

    The variable could be something like a True/False, or a Number or Text variable.

    eg.

    Layer 1

    Adjust variable "objectSTATE" to True

    When user clicks "BUTTON"

    Layer 4

    Change state of "OBJECT" to Hidden

    When the variable changes "objectSTATE"

    If "objectSTATE" = True

     

    This will cause an object on Layer 4 to hide once a user clicks a button that is on Layer 1.

     

     

  • Great advice from AndrewBlemings-​ and AaronBurgessAU​. I often use "when variable changes" for a trigger's "when." 

    • There can be situations in which a condition isn't needed. Just use the fact that the variable changed to make something else happen. 
    • For future reference, be aware that the variable change must occur on the same slide as the "when variable changes" trigger. (A trigger on one slide doesn't "see" a variable change on another slide.
    • For more info about variables: 

      The Value of Variables | E-Learning Heroes