customized progress bar issue

Hi,

I had created customized progress bar with three states in it when i go through next button it will works fine but the issues are:

1: when i go through menu  and click on lesson 1st time it shows first state then again i click same lesson 2 times it will show next state, this wont happen.

2: when i resume to course the states on same lesson reset. There are some interactive slides also which needs to reset to initial state.

I am attaching sample story file. Please anyone can help me out.

9 Replies
Dave Cox

Hi Amol,

I'm not sure what you are attempting to do with all of those complicated variables and logic. To troubleshoot, you need to watch your variables to see if they are responding as expected. I added some of the variables to display so you can see what is going on. I placed these on the master slide, so they will show up throughout. I also added a variable, "ShowVariables" that you can use to turn these on and off. Just set ShowVariables to false, and the display will go away. This let's you turn them off for publishing, but can turn them back on to continue debugging. 

Dave Cox

I'm not really sure what you are attempting to do, so what you are doing may be OK.

What I usually do to track progress, is pretty much count slides. I set a variable, and update that variable when a slide is entered. What I do is update the variable to the current slide number if the current slide number if more than the variable. If the variable is more than the current slide number, then I don't update the variable. That way I only update the variable as the participant progresses through the slides. 

Amol chikane

Hi,

What I want to do is, If I had 6 slides in one topic & progress bar image with three states (i.e. started, half completed, completed).

1: When i go to any one slide randomly out of 6 the progress bar image state changes to started.

2: When I completed any of 3 slides randomly the progress bar state changes to half completed.

3: When I completed all 6 slides randomly the progress bar changes to completed. 

Dave Cox

Hi Amol,

Your variable Progress1 is going past the values that you are checking for. Then the progress bar image resets to 0, because no condition is met. I added Progress1 to the list of variables, and you can now see what is happening. I also changed your last state change to say If Progress1 is Greater than or equal to 6 to catch those unanticipated values. Now it doesn't go back to started. 

Take a look at your variables, and make sure that they are only updated when you intended them to update. When they update at time other than when you anticipated, you need to add conditions to insure that they only update when you want them to. 

Dave Cox

Hi Amol,

I've made some additional updates. With the current setup, you are counting slides more than once. I've changed your variables to count the slide visits with the visited variable, and only add to the progress1 variable on the first visit to the slide. This prevents the progress variable from advancing when it shouldn't.

This did add a new issue though. Because the progress variable does not update on every slide visit, you need to initialize the state when the slide starts. I added three triggers to your master to account for this, and update the progress state when the timeline starts.

Since we are now only updating the variables when they should be updated, the third issue you listed is now fixed as well.