When i open game, app should check what time it is and take appropriate action?
What time it is where?
If you want to know the system time you could try using the system time and date plugin
If i open app, app should check what time is it (on pc or smartphone) in your device prabably will be different time
That is what system time means, the plugin I linked to gets the time from the system it is on (be it phone, tablet, pc).
So this should get you running in the right direction.
thanks for reply, do you know this plugin? Its possible to create timer like this:
on first app start set hours (23) minutes (60) seconds(59)
and timer count down even if i turn off PC or smartphone ?
but when i turn on again after 25 hours (do for example message) and timer shows 22hour 60 minutes and 59seconds.
This is all what i need
The plugin gets the time from your system. you should be able to get that on start of your first layout so after that the program takes over the time.
If you put the time into a variable and save it when closing the program on restart you could compare the saved time with the system time on startup and discover how much time has past.
Just to make things clear:
A timer can't continue to count down when the program is closed. A closed program does no calculations, so actually while closed nothing can be changed.
But on startup you can compare the timer with the system time and see how much time has passed. You would then have to make events to change everything that would have changed in the time past.
Develop games in your browser. Powerful, performant & highly capable.
this is mindblowing but i accept challenge ;p