Skip to main content
Participating Frequently
October 21, 2015
Question

Lesson Play minute and time not working

  • October 21, 2015
  • 1 reply
  • 531 views

Details:

I created a timed game in Captivate. Its a timed trial, essentially.

A "set start" action is set as the "on exit" action of a slide.

A "set end" action is set on clicking of a later slide. On the same slide, the action of "final result" is set "on exit" of the slide. If it took the learner <10 minutes, they are taken to slide X, between 10-12:59, slide Y, and >13, slide Z.

What happens - I am taken to the correct slide based on how long it took me to complete the game, but I also have variables listed on the slide to display the learner's final time (in minutes and seconds) and yet nothing displays. This file was upgrade from CP6 > CP8...could that be the problem? Do I have to rebuild the variables/actions?  Any help would be much appreciated.

This topic has been closed for replies.

1 reply

Lilybiri
Legend
October 21, 2015

On exit event is not a good choice for any action. Just a comment.

If you want help, please most some screen shots of the advanced actions. Upgrading can cause issues indeed. Do you track the variables while debugging?

Participating Frequently
October 23, 2015

Thanks for responding. Here's the screenshot of the set start on exit. It worked like a charm in the previous version, but is the new version buggy w/"on exit"?

Here is the set end action:

And then here is the expression on the slide their final time should display.

Also, I don't kow what debugging means with relation to upgrading to CP8 - so I likely didn't do that. Any pointers there?

Lilybiri
Legend
October 27, 2015

Unfortunately, I don't know where the script originated from. A co-worker of mine, who no longer works here, built in all of the script stuff - and that's why I'm struggling to pick up where she left off w/CP8. I didn't know that the API changed w/8 - so that might be the root of my problem. It is an action affiliated w/a click box. Even after rebuilding all the variables and actions, this stuff isn't working for me.


Why don't you try my solution by including that calculation in the Advanced action itself as I show in the blog post I was referring to?

It would mean too much time for me to find out what is wrong with that script, maybe someone else, a JS expert will pop in.  If you look at this page: Common JS interface  you see that the function to get a variable from Captivate is now 'getVariableValue' and to return it 'setVariableValue'. That means indeed that your script was created for an older version.