Hi everyone
I am making a game and in that , i have to measure and record the time elapsed as soon as a particular layout is active
Can anyone help me regarding that ?
Thanks in advance
Just something simple
Let's say "Time Survived:X/Secs"
To do that Create a global variable name it "Time"
Every 1.0 second-Add 1 to "Time"
Or for every min
Every 60 sec-Add 1 to "Time"
Hope that helps
Thanks friend !!!
Yeah,pretty cool.Your idea is awesome !!!
Develop games in your browser. Powerful, performant & highly capable.
If you want even more accuracy without a timer you can store Browser.ExecJS("Date.Now()") in a variable when the layout starts.
Then, you can Browser.ExecJS("Date.Now()") - variable = milliseconds since the layout started.
Thanks friend