Storyline animations and variables in quizzes

Jul 16, 2019

Hi folks,

I was looking around for posts that address an issue I'm having that involves variables and triggered animations. I did find this post but am hoping that cross posting may lead to more specific help.

I have an interactive quiz that I've been stuck on for a few days. 

I'm using both a graded quiz and motion paths triggered by variables that change based on answering questions correctly.

In a nutshell, some triggers to move the car work great while others jump instead of gliding gracefully down the road. They all look the same though so am stuck trying to find the hidden differences. I have found a few other ways of getting to the same or similar end result (an interactive quiz-like activity) but would love to find a way to make this work for other projects.

To be honest this began as a kind of doodle (no plan, just seeing what I could come up with) and it accidentally worked - to a point. Could be that it's not meant tow work - or maybe someone has a quick fix and we can all benefit :-)

 

 

9 Replies
David Schwartz

Hi Jamie,

I think part of the issue is that the built in variable you're using, Results.ScorePoints, does not get reset if the learner gets a question incorrect. My suggestion is to remove the conditional trigger in the base layer to set Q1, Q2, Q3... to true, and instead add a trigger on the Correct layer of each of the screens to set the Q!, Q2, Q3... variables to true.

Jamie Billingham

Thanks David,

That solved part of the problem. This is way better.

While in the Correct layer I added a Trigger to Adjust variable Q1 =Assignment Value True When User clicks Object Continue.

Then I moved that Trigger to the top of the triggers.

The motion path jumping issue remains as now all the correct answers result in a hop down the road.

Is it that all the triggers on the Correct layer are triggering at pretty much at once ... so the variable that makes the car move, triggers at the same time as the hide layer and jump to next slide triggers?

David Schwartz

Hi Jamie,

OK, here's another way, and I think this is much closer to what you want. Basically, I've changed your triggers so that on the Correct layer, when the user clicks Continue the layer is hidden, and then launches the motion path animation on the base layer. I removed the trigger that advances to the next screen from the Correct layer.

I didn't do anything with the variable triggers, but with this method, you don't need them.

On the base layer, I added a trigger that advances to the next slide when the animation ends, and removed the trigger that originally was starting the animation. 

One thing I did not do is adjust the starting points of the car to match exactly where the animation on the previous slide left off, but I think it is getting there.

Let me know what you think.

 

Jamie Billingham

Thanks David!

This is exactly what I was hoping to accomplish.

I can adjust the starting and stopping points - just didn't want to spend the time doing that until I was sure the rest of it world work.

Just to help me understand this - it looks like each variable is still being used on the Correct layer to switch to true which in turn begins the car movement. But you are saying that these are redundant and are not actually in use - as the Layer trigger to Move the car on the emotion path is what is actually triggering the beginning of the car moving?

It must be because I've deleted the Adjust variable trigger on the Correct slides and everything works the same. Yippee!

You totally rock! I'll delete the rest of the variable triggers and tidy the start and stops and post for other to use :-)

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