on_frame
This event is executed every frame, and can be used to implement functionality similar to wait() in an external language.
Type
Event
Example:
function on_frame_event()
{
static int counter=0;
counter += time_step;
if (counter > 16) {
beep();
counter = 0;
}
}
See also:
on_close, on_level, on_exit, EVENT_FRAME► latest
version online