Forum Discussion
ElearningDev699
3 years agoCommunity Member
Need Some Help to Create Stop watch in storyline 360 with JavaScript
Hi guys,
can you help me to create stopwatch. here is the code written but am not getting it properly. can any one respond where went wrong in the code.
var player=GetPlayer();
var msec...
MathNotermans-9
3 years agoCommunity Member
Although this is far from complete, here are some fixes to help you get started.
- You need to check your variables. The NaN is caused by setting hours instead of Hours.
Do use consequent variable naming all the time. I use camelCasing... So instead of Hours i would name it stopwatchHours or swHours to be sure i get the proper var.
- Now the script is onlt executed at Storyline start. You need it to loop. I added a SlideLayer that loops in it. Quickly fixed it... can be improved.
- ElearningDev6993 years agoCommunity Member
Thanks for this response. But can you suggest me how to do only using JavaScript by not taking any layer loop.
like layer starts the stopwatch should be start irrespective of the time line loop. - ElearningDev6993 years agoCommunity Member
can you check this once it's working till 59sec.
Related Content
- 2 months ago