Game time played

Any idea how to make a count that show you how time you have been playing the game?
Thank you

Hi @Jorge_Cantero,

You can use the dt returned on each script update call for that:

MyScript.prototype.initialize = function(){
   this.counter = 0;
};

MyScript.prototype.update = function(dt){

   this.counter += dt;
};

Now this.counter will hold the elapsed time since the game started in seconds.

2 Likes