Forum Discussion

MarcRaab's avatar
MarcRaab
Community Member
13 years ago

Two triggers on one object?

Hello,

I have attached a single slide to this post.  In it you will see I have four images at the bottom.  I want to have multiple triggers on each object.  One trigger- activated when hovering over the image, works just fine.  My second trigger I want on these pictures is a trigger that is activated when the viewer clicks on the same image.  When clicked I would like it to open up a new layer.  This does not seem possible, although I have seen posted several times that you can have multiple triggers on single objects.

Thanks for your help,

Marc Raab

21 Replies

  • marinaraynis's avatar
    marinaraynis
    Community Member

    Hi Everyone,

    I would like to post a question to the community about some triggers I am trying to set up.  I have attached the file as well.  I have two characters who give advice, and I would like the user to click on their heads to be able to hear what those characters have to say.  I put clear rectangles over the heads of each character to host the triggers.  I am trying to set up two, simultaneous triggers so that when the user clicks the clear rectangle, the character underneath begins speaking and the rectangle changes states from clear to yellow/transparent (to show it is selected).  Then I would like to stop the audio that is playing when the user clicks on the rectangle again (on the condition that the rectangle is "selected").  I have gotten confused now because my triggers aren't working for me.  Among several confusions, the audio plays when the rectangle is not selected...  I would greatly appreciate any help!

    Thank you,

    Marina

  • marinaraynis's avatar
    marinaraynis
    Community Member

    Thank  you so much for your help!  This is great!  I do have a couple more questions - 1) Do I need to keep the variable references on the slide?  I'm unclear on the purpose it serves located in the text box on the slide.  2) In order to stop the audio of one speaker when the user clicks the other speaker (so that the speakers can't play simultaneously), should I just copy the "stop" trigger and change the trigger object to the other rectangle?

    Thank you,

    Marina

    • WendyFarmer's avatar
      WendyFarmer
      Super Hero

      Hi Marina

      1. no you don't need to keep the variable references on screen, that was so you could see how the triggers reacted when the variable changed. 

      2. What is your instruction to the learner on that slide about how they interact with the images?  That will give a better idea of how best to write the triggers.

  • Hi Marina!

    Looks like Wendy has popped in to assist you here. Just let us know if you need anything further.

  • marinaraynis's avatar
    marinaraynis
    Community Member

    Thank you for your reply Wendy and Leslie!

    The instruction will just be to click on each character to hear their opinion. I just don't want the user to click on both characters, and have them speak simultaneously.  Is there any way to do this?

    Thank you,
    Marina

  • marinaraynis's avatar
    marinaraynis
    Community Member

    This is great!  Thank you very much!  I'm so appreciative to you and Wendy for your help!  Thank you for taking the time to help me!

  • Of course Marina. Glad to be able to assist and just let us know if you need anything further.

  • Absolutely. You can have as many conditions as there are triggers. I suspect that somewhere out there, short of infinity, there is a limit to how many triggers a slide can have, but I don't know if anybody knows what it is.

    You can also have multiple conditions on a single trigger, if you connect them with OR.

    Attach your .story file here with an explanation of what you want to do, and someone can help you.