Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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 !!!
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.
Develop games in your browser. Powerful, performant & highly capable.
Thanks friend