Variables vs hiding layers

Nov 20, 2018

Hi there.
I have created multiple layer slides with multiple objects appearing on the layers when the user clicks the next button which adds 1.00 to the variable NextLayer when the user clicks the next button.

The trigger is:

Change State Of object1 to Normal when Variable Changes NextLayer If NextLayer is greater than or equal to 1.00 (etc.)

and then subsequentially:

Show layer 1 when NextLayer changes If NextLayer is equal to 4.00

I have been running into the issue that the previous button then needs to be clicked multiple times to actually hide the layers. Since the amount of objects appearing varies per layer, I can't simply subtract 2.00 or 3.00 when clicking the previous button.

Does anybody have a sleek way of making the layers disappear within one click?

 

See slide here or attached the .story

 

(Nevermind the layout of the attachment, it got messed up during copy+pasting into a new .story)

7 Replies
Daniel Servan

Hi Antje,

You need to click many times before you can get the next Layer to display, it is because you added a value of 1 and subtract 1 on Prev | Next button.

Then on the condition below, 2 clicks empty and nothing will happen.

The simplest way of doing this is by adding a button on every layer instead of using variables on the Next | Prev button.

You can disable the Next button by default until all layers are visited.

Let me know if you still need help.

Antje T.

Hi Daniel,

Thanks a lot for your reply. The screenshot is only half the trigger. Because on the slide itself I also used the sme variable for changing the states of two texts/objects, so it is not an empty click going forward.

Only when I go backwards I run into exactly this issue of empty clicks and I am aware of why it happens, I was just checking whether somebody might see a better way of building the slide triggers and variables to prevent the empty backward clicks.

I do not want to disable the prev | next buttons since this is the standard layout for the project. I don't like to introduce a new way of navigating halfway through the project while the user does not see that this is layers instead of slides he/she is forwarding. The standard navigation makes my life a lot easier for most of the slides.

Daniel Servan

Hi,

I have fixed the navigation for Prev Button by adding a LayerCtr variable.

if Layer = 1,
LayerCtr = 1
if Layer = 2,
LayerCtr = 2
.
.
.
if Layer = 6,
LayerCtr = 6

On Prev button,
Subtract LayerCtr -1

if LayerCtr = 6
Show Layer 6
if LayerCtr = 5
Show Layer 5
.
.
.
if LayerCtr = 1
Show Layer 1

While LayerCtr>0
Loop this Trigger.


The Next navigation triggers need to check as there are conflict triggers.


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