Class BpxTimerSequence<TPhaseName>

A timer sequence, which is a more advanced version of the BpxTimer. It allows to define a complex set of intervals and looping with use of multiple intro and loop phases.

Type Parameters

  • TPhaseName extends string

Static factories

Accessors

  • get framesLeftOverall(): number
  • A an amount of frames left to be counted for the entire sequence (intro + 1 loop pass), decrementing down to 0. After the first loop pass, the intro is no longer taken into account in the calculation.

    Returns number

  • get hasFinishedOverall(): boolean
  • Whether this timer has finished already the entire sequence (intro + 1 loop pass). This becomes true forever afterwards.

    Returns boolean

  • get hasJustFinishedOverall(): boolean
  • Whether this timer has finished the entire sequence (intro + 1 loop pass) in the most recent game loop iteration. After the first loop pass, the intro is no longer taken into account.

    Returns boolean

  • get progressOverall(): number
  • A progress of the counting for the entire sequence (intro + 1 loop pass), gradually incrementing from 0 to 1. After the first loop pass, the intro is no longer taken into account in the calculation.

    Returns number

  • get tOverall(): number
  • A current counted frame number for the entire sequence (intro + 1 loop pass), incrementing from 0. After the first loop pass, the intro is no longer taken into account in the calculation.

    Returns number

Methods