Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
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...