Android has https://developer.android.com/reference ... dRealtime(), which returns the time since boot for the device, including idle time. Is there a way to utilize this through Construct? I'm guessing there is a similar feature for ios but accessed differently, and I'm not sure if desktop/html5 has any equivalent?
This is used for the purpose of keeping track of idle time while offline, and preventing system clock changing shenanigans.
Develop games in your browser. Powerful, performant & highly capable.
Whats wrong with using epoch time?
Date.now();
I'm currently using that, but it is subject to the user changing the system clock.
Workaround is to use multiplayer plugin to connect to a time server, but that only works when online.
You’ll have to look at the api of the export you used. They usually expose extra stuff to JavaScript. You’d have to just look at their docs. They typically have a plugin system to include more. The most I’ve fiddled with is extra stuff in nwjs, but it should be similar for other exports. You would use the browser execjs action to access it. That stuff isn’t minified.