Установить Steam
войти
|
язык
简体中文 (упрощенный китайский)
繁體中文 (традиционный китайский)
日本語 (японский)
한국어 (корейский)
ไทย (тайский)
Български (болгарский)
Čeština (чешский)
Dansk (датский)
Deutsch (немецкий)
English (английский)
Español - España (испанский)
Español - Latinoamérica (испанский Лат. Ам.)
Ελληνικά (греческий)
Français (французский)
Italiano (итальянский)
Bahasa Indonesia (индонезийский)
Magyar (венгерский)
Nederlands (нидерландский)
Norsk (норвежский)
Polski (польский)
Português (португальский)
Português-Brasil (бразильский португальский)
Română (румынский)
Suomi (финский)
Svenska (шведский)
Türkçe (турецкий)
Tiếng Việt (вьетнамский)
Українська (украинский)
Сообщить о проблеме с переводом
As Wasabito said, you can use system's time by Date and Time object and from there, you can use the data to make it trigger an event on specific time (say, from Day to Night or vice versa).
Two solutions :
- Leave your application running in the background, no display, it wont take much processor time. On Windows, there is an object to add a small icon to the right of the task bar (cant remember the name). And Android, uncheck "End application when not in foreground", but I'm not sure is the application loop will be called. I have to ask Fernando about that. Then update the objects on your game based on the timer.
OR (and AND, as the user may want to force your application to quit)
- When quitting your application, save the value of the timer somewhere where you can recover it the next time. On next boot, load the previous value, calculate the difference, then make a loop, with no display, that calculates quickly what has happend in the delay between the two launches.
You can achieve stuff like this with the GET object and some PHP/SQL knowledge...