Forum Discussion
Hover AND Click?
Hey!
I am trying to have 3 selections that can reveal certain text when hovered, but also reveal an answer layer when clicked. So far, the hover works but the trigger does not. I have them all going to different layers, which may be the issue, but is there a way to have an object be hoverable and clickable at the same time?
See the attached sample. Using latest 360 SL
- EricSchaffer-d1Community Member
OK, I found the issue and I made some changes. I can remember playing this game during my EMT training.
Any way. You are using layers to bring up the hover. This locks the base layer so the click on the red button will not work. I made a text box with the information in it. Then I took the box back color and boarder off. Next, I created a Hidden state and set that as the Initial state. Next, I removed your trigger. Then I create a trigger to change the state of the box to normal when the user hovers over the red dot and a trigger to jump to the slide when the dot is clicked on. Try it an see if it works for you.
If it does, great, if you need help reach out to me. If you click on my picture, I think it will give you my contact info. I check these regularly, so just reach out.
Good luck
- WaltHamiltonSuper Hero
Brian, Of course, but even if your triggers work (which they can easily), you have to make a decision here:
When they click do you want to go to the answer layer, or the answer slide? Generally, in a case like this, the system would go to the first option, then before you could see it, would go to the second option. But in the case of a jump, there is a special consideration: as soon as the jump command begins processing, all other triggers below it are cut off and not executed.
Once you make that decision, and delete the trigger you don't want, making the click triggers work is easy. For each layer, go to the properties, and deselect the option "Prevent user from clicking on other layers". Selecting that includes the base layer, and you don't want to prevent them from clicking on the base, since it holds the circles.
Something else to consider. As it is, no layers are closed, even when the learner hovers over another circle. You are getting away with it because the last layer shown moves to the top. Personally, I think that is a messy and vulnerable situation, so I would also set each layer to hide other layers, but it's up to you.
- BrianCook-614f2Community Member
Thanks! I think that did it!
- WaltHamiltonSuper HeroYou're welcome. PIAWYC (Pass it along when you can).
- BrianCook-614f2Community Member
Sent from my iPad