Class l2df.class.timer

Last updated 2021-05-28 15:24:22

Timer class.

Inherited from l2df.Class.

Info:

Functions

Timer:init(tick) Init timer.
Timer:update(dt, islast) Update event handler.


Functions

Methods
Timer:init(tick)
Init timer.

Parameters:

  • tick number Number of frames to wait for.
Timer:update(dt, islast)
Update event handler.

Parameters:

  • dt number Delta time from the previous frame update.
  • islast boolean Accepts only updates for the last drawn frame.