Forum Discussion
Let variable decide whether to show a layer
Hi Matthew
If you copy the variable display box onto each layer it's easier to see the value of 'alreadyshown' as you progress through each stage. It's important to understand how the base layer timeline works.
I think what is happening is this - you are setting 'alreadyshown' to a value of 1 at 68 secs so when you reach the trigger at cue point 84.56 secs to display ' forgotten to duplicate' the value is 1 and the layer displays - The timeline on the base layer is still running.
'alreadyshown' is set to 2 at 87secs while you are viewing the 'forgotten to duplicate' layer. You exit this layer and jump back 15 secs you are jumping back in the timeline into the 'forgotten to display' layer' because the clock was still running on the base layer. Although the 'alreadyshown' variable is 2 you are in the 'forgotten to display' layer because you jumped there NOT because the conditional trigger was executed.
If you pause the timeline on the base layer when you enter the 'forgotten to duplicate' layer you will see the difference. Jumping back 15 secs after you exit the layer will put you back before you displayed the layer. This is not intended to solve your problem - just to demonstrate how the timeline works. In this case the 'alreadyshown' variable is still 1 so the layer would be shown again. If you jump back before 68 secs your trigger at 68 secs will reset the variable to 1 and the layer will still be shown again!
Have you tried setting a true/false flag inside each layer to say that layer has been viewed and then using this in the conditional test to trigger the display of that layer? - this might be a simpler approach avoiding the problem that you are resetting the variable in the timeline. You might also want to consider pausing the base layer when you enter each layer and restarting it when you exit. Working out where you are on the base layer timeline would be a lot easier... and it would avoid you 'jumping' into a layer.
I hope that makes sense?
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago