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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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?