Show/Hide Keypress Layers in Storyline 3. Would this only work with Variables?
Mar 12, 2021
I have been teaching myself layers and triggers by putting together a Storyline Shortcut Keys project - screenshot attached.
However, whilst I understand displaying Layers, using hover over triggers, which allow you to restore when the mouse leaves, I can't work out how to do the same with key presses.
The example in the picture is I have set up most of the CTRL key presses e.g. CTRL A, CTRL B etc.
If pressing CTRL A displays the CTRL A layer which tells the learner what CTRL A does, I would want CTRL A to disappear when that learner then presses CTRL B, but of course, it stays up and now I have CTRL A and CTRL B layers overlaying each other and making a mess.
Is the answer to use Variables and with a value recorded which increases and decreases as keypresses are made? I can't see how I would apply that as I have never used variables and a quick look on here suggests it depends on the scenario and they are all different.
Any thoughts from Storyline whizzes out there, please?
Thanks.
10 Replies
Hi, Steve.
Thank you for reaching out!
If you want other layers to hide automatically, you can choose that option in the layer properties. You can right-click the layer, choose Properties, then make sure Hide other slide layers is checked.
I created a sample file based on your idea, and I'm attaching it here to show you this behavior. If it's still not working for you, would you feel comfortable sharing the .story file here? I'd be happy to take a look to see if there's something else preventing the layers from closing.
Let me know if this works!
The way I have done the layering won't let that work. I have effectively got a baselayer of the keyboard and then another layer with all the keys that marry up with the CTRL key on top of that with the final layer e.g. CTRL-A and CTRL-Z for hover over/key press to add on top of the CTRL layer which is on the base layer!! :D
Attachment of the project below. I was thinking, on completion of offering it up to the Community as a learning tool for layers but also to learn visually about keyboard shortcuts as an alternative to viewing your table online.
Thanks for agreeing to look into this, Maria. Much appreciated
Hi, Steve.
Maybe others in the community will have different suggestions for you, but I think if you want to maintain the current structure (one base layer, one key layer, then several other layers for that key layer), you will need to add several triggers to hide other layers after each one is opened. Each combination would need to be a trigger on every other one.
Another solution would be to have your base layer, and then another slide would act as the Ctrl key with all the Ctrl layers (which would allow you to use the hide other layers property). It would work very similar to what you have now, but the main keys would be in separate slides instead of layers.
I hope this gives you some ideas to work with!
That's great Maria, understood.
Yes, I hadn't considered using separate slides so thanks for that. It certainly sounds like an easier solution than layering up even more triggers within the single slide.
Therefore each Key slide would need the keyboard image in the Base layer to keep the image displayed, right?
I don't suppose there is a way of copy-pasting my work into the new slide with all the triggers intact? I haven't looked to try at the mo, but will do later this afternoon.
A lesson learned and I can leave variables to another day. :)
Cheers.
Hi, Steve.
There are a couple of ways you can do this. Since you might also re-use some of the layers (all the CTRL ones inside your CTRL base slide), my suggestion would be:
Let me know if this works!
Cheers Maria,
That’s exactly what I ended up doing. Once I have completed it all, I’ll post the finished version back here for people to see, who come across this page.
I realised with all the extra slides I needed to also remove the tailored Navigation Previous and Next buttons out of the Master template, placing the one button I needed on the slide itself.
It will be interesting to see all the new accessibility functions in SL3 that will be with us imminently.
Thanks again for coming back so swiftly.
Here's my final version of having an interaction of Storyline Shortcut Keys.
I am sure I could improve it further so that the top of the CTRL and SHIFT slides weren't so cluttered re: mouse-dragging.
Hope anyone who happens across this page finds it useful. Cheers.
Hi Steve!
Thank you for sharing your final version in this discussion! I'm confident it will help others who come across this discussion looking to create a similar project.
Don't hesitate to reach out to us in this discussion or a support case if you have additional questions!
Thanks Lauren. It's all good and great to have gotten to the bottom of it.
Cheers.