Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
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 !!!
Develop games in your browser. Powerful, performant & highly capable.
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.