Forum Discussion
Problem with activating "Next"-button
Just a personal rant: Variables aren't a workaround; they are an integral and necessary part of SL. If anything, using the condition of states is a workaround, and Dane is right - they aren't always reliable.
I'm not from Articulate, but I can tell you why it doesn't work. I can also make some suggestions that you may or may not want to follow.
This trigger can't work in the present form:
because it only fires when the slide timeline ends. The timeline ends after one second. Meanwhile, the rectangles it checks doesn't appear until after the learner clicks the main slide, clicks the animation layer, and five seconds pass on the Roller layer, and then the same process for the Ansvar layer. Then the slide starts over and the states are reset, so it never will find the rectangles in the visited state.
The groups on the Ansvar and Roller layers can cause problems. Groups don't always work well with triggers and states, and animating all the objects in one can be a pain. It is much easier to create them as a single unit. Copy the arrow and text, edit the Normal state, and paste them onto it. Then they are one object, and can be animated or triggered easily and reliably. You can copy the Normal state, and change colors, because while you are editing states, they appear as separate objects.
(One thing about doing it this way is that the rectangle doesn't have a fill, so the only part that will recognize the mouse hovering or clicking is the lines. Simple fix: fill the rectangle and set its transparency to 99%.)
Changing those groups to single objects will also save you a lot of triggers. In fact, you won't need any for them. Slide the left edge of them to the right in the timeline, and they will enter when you want. You don't need the "Set state to Visited" trigger, because that action is built into every object with a Visited state. In fact, if you don't delete it, it may cause problems.
Jumping to this slide will reset states, making it very difficult to find both objects in the Visited state at the same time. A better solution is to use variables as Dane suggested. I would make one change to his suggestion. Adding to a variable is risky, because if the learner visits the same layer twice, then the program will advance. A safer method is a variable for each path.The triggers you want are:
You have done a very good thing to use layers for the animations. That allows you not to have to restart the slide. When the animation layers are hidden, the base appears, and looks like it did at the beginning.
- Borg_Cube3 years agoCommunity Member
Thank you for a very good explanation, and all the great tips.
I tried to make the buttons as single objects but didnt figure out a good way while still retaining the animation.
With regards to your rant, I'm well aware of the importance of variables, I use them all the time. I should maybe have said "alternative solution" instead of "workaround".