room_speed Speed of the game in the current room (in steps per second).
fps* Number of frames that are actually drawn per second.
current_time* Number of milliseconds that have passed since the system was started.
current_year* The current year.
current_month* The current month.
current_day* The current day.
current_weekday* The current day of the week (1=sunday, ..., 7=saturday).
current_hour* The current hour.
current_minute* The current minute.
current_second* The current second.
Sometimes you might want to stop the game for a short while. For this, use the sleep function.
sleep(numb) Sleeps numb milliseconds.
As you should know, every instance has 12 different alarm clocks that you can set. To change the values (or get the values) of the different alarm clocks use the following variable:
alarm[0..11] Value of the indicated alarm clock. (Note that alarm clocks only get updated when the alarm event for the object contains actions!)
We have seen that for complex timing issues you can use the time line resource. Each instance can have a time line resource associated with it. The following variables deal with this:
timeline_index Index of the time line associated with the instance. You can set this to a particular time line to use that one. Set it to -1 to stop using a time line for the instance. Note that this does not start the time line. For this use the variable timeline_running.
timeline_position Current position within the time line. You can change this to skip certain parts or to repeat parts.
timeline_speed Normally, in each step the position in the time line is increased by 1. You can change this amount by setting this variable to a different value. You can use real numbers like 0.5. If the value is larger than one, several moments can happen within the same time step. They will all be performed in the correct order, so no actions will be skipped. You can also use a negative value to let the time line play backwards.
timeline_running Indicates whether the time line is running (true) or paused or stopped (false). You can change this variable to run or stop the time line.
timeline_looping Indicated whether the time line is looping (true) or not (false). You can change this variable to switch looping on or off.