Forum Discussion
JustinBurns
4 years agoCommunity Member
Display total project time using new elapsed time variables
Hi!
Ive updated Storyline and love that there are new features with the elapsed project / slide / scene built in variables.
I saw a few tutorials on how to do a few things, ie mark a course as ...
PhilMayor
4 years agoSuper Hero
You can use some javascript something like this should work (sorry not tested):
var player = GetPlayer();
var minutes, seconds;
var timeM = player.GetVar("timeM");
function timer() {
minutes = zeros(Math.floor(timeM / 60));
seconds = zeros(timeM % 60);
totalTime = minutes + ':' + seconds;
player.SetVar("time_Display",totalTime);
}
Needs variables timeM that is set from inbuilt variable and time_Display that you show on your Timer. You would need to call each second for this to update in real time