Forum Discussion

FraserWebster12's avatar
FraserWebster12
Community Member
2 months ago

Quiz Progress Shown on every slide (File Attached)

Hi all, please help! (File Attached).

I'm trying to create a quiz where progress is shown after completing each question. I want to show this progress in the form of coloured circles at the top. Each circle relates to a question, and if the user answered that one correctly it changes to a custom 'correct' state (in this case it turns green). 

However, I just cannot seem to do it. The process I've followed is:

> I've applied the circles to the slide master so they appear on every slide.

> I've added a trigger to adjust a variable (equal to 1) when the user clicks submit, on the condition the correct answer was selected. 

> I've added a trigger to the slide master that when the user clicks submit the state is changed to 'Correct', on the condition that variable 1 is equal to 1. 

This process just doesn't seem to work. The variable does update, but the state of the circle doesn't change. Have I massively over-complicated this and there's a much easier way to achieve this? Any help you can give would be massively appreciated! 

I've attached the file where the triggers are applied to the first question. I've put the variable on the stage for this example so I could check that it was updating. 

 

Thank you! 

1 Reply

  • Triggers run in order. When a trigger on the master has the same "when" as a trigger on a slide (for example, "when the user clicks Submit"), the trigger on the master runs first. So, in the file, the trigger to change the state of the master button runs before the trigger that adjusts the variable if the user answers correctly. 

    The fix for this is simple: change the trigger on the master so it runs when the variable changes: 

    However, that's not the only change needed. When a trigger changes the state of an object on the master, that change only applies to the slide the user is currently on. The object will appear in its initial state when the user moves to another slide. 

    Thus, the master also needs triggers to change the state when the timeline starts, using the same condition:

    This is done for the first oval in the attached file. FYI: I increased the transparency of the background for the question feedback layers, so it's easier to see the state change.

    Other things to consider:

    • You have the ovals on the Master Slide layout. That puts them on all the slides. They can't be removed from the non-question layouts. You'd have to cover them up somehow. So I suggest you add the ovals only to the Question layout. 
    • You have triggers on the ovals that jump to the associated question. Consider whether you really want the user to be able to skip around the questions.
    • Also, the ovals have a Selected state, and an oval will automatically change to that state when it is clicked. That could be confusing, because it will be in that state if the user returns to the question they were on when they clicked the button.
    • You have the Attempts field  set to Unlimited. That means the user will never never see the Incorrect layer. They will see the Try Again layer when they answer incorrectly, and they can't proceed until they answer correctly. In that case, consider whether it's worth the programming effort to show the progress.