Forum Discussion

JoelObrecht-033's avatar
JoelObrecht-033
Community Member
2 years ago

Foolproof way to have a counter trigger in a question bank

Hello,

I have a question bank and I want to count the questions to show the progression to the learner. Problem is, it has to be foolproof. Here are the tests I did : 

- I put the +1 counter trigger on the opening of the slide -> the counter goes off if there is any reload

- I put the counter trigger on the end of the timeline, but then I have to fiddle with breaks in the timeline ... And it still isn't foolproof

- I put the counter trigger on the next button ... But when there's some connectivity problem, button spamming, or slowing down, or reload, the counter gets off ... So I made the next button inactive once cliqued but again, when there's some network problem or the page is reloaded, the user is blocked.

So is there a foolproof way to have a slide counter properly increasing ? 

I didn't try to use internal variables, such as scene progression, etc. I'll have to try that next. I'll keep you updated.

  • TommiOjala's avatar
    TommiOjala
    Community Member

    We have just used +1 at start of timeline, and we have not had any issues with it.

    But there might ways to do this that are less prone error nonetheless. Could it work if you made a True/False variable for each slide that chances for example when the timeline starts? Then make that variable add 1 to counter when it changes?

    That should make it sure that each page is only over counted once, as without any further triggers the True/False variables will not change again.

  • Alright, the most foolproof solution I found for now is to have the question draw at the beginning of a scene and to use the internal Scene.SlideNumber variable. I'll try that in my LMS.

  • TommiOjala's avatar
    TommiOjala
    Community Member

    Well that way is easier by a mile than what I suggested :)

  • Thanks anyway Tommi for your answer. I tested the Scene.SlideNumber solution and so far, so good ! Hope this can help the community :)