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
i am making a clicker game, and i need to know how much time (in seconds) the player was offline. With the offline i can give "Offline time money".
In the browser object, you have an event "on went offline" and "on went online". Just start a timer when "on went offline" triggers.
This is one way:
When the player quits the app just save the date and time and when the player starts the game again then just take the actual date and time and compare it with the old stored date and time to get how much time has passed.
Develop games in your browser. Powerful, performant & highly capable.
This is one way: When the player quits the app just save the date and time and when the player starts the game again then just take the actual date and time and compare it with the old stored date and time to get how much time has passed.
yeah, but how i do that?
You can use Rex plugin here:
It even has a built in system for getting the elapsed time which you can use.
You can use Rex plugin here: It even has a built in system for getting the elapsed time which you can use.
thanks man, there is any example capx?