API Reference › Time › Time.frame
method

Time.frame

Time.frame() -> int

Returns how many frames have completed since the program started, incrementing once per frame. Deterministic — the same replay reaches the same frame count. Use it to time events (if Time.frame() % 30 == 0), drive animations, or seed per-frame variation.

Example

program Demo {
  handler Step phase Update {
    if Time.frame() % 60 == 0 { tick() }
  }
}
← All symbols