Source Academy Modules
    Preparing search index...

    Function get_loop_count

    • Gets the current loop count, which is the number of frames that have run. Depends on the framerate set for how fast this changes. This function should be called in your update function.

      Returns number

      a number specifying number of loops that have been run.

      if (get_loop_count() === 100) {
      // Do something on the 100th frame
      }