Change the way Timer behave. \ once: Will run from 0 to 1 in one duration then stop. \ reverse: Will run from 1 to 0 in one duration then stop. \ loop: Will run from 0 to 1 in one duration then restart from 0 again, etc. \ loopReverse: Will run from 1 to 0 in one duration then restart from 1 again, etc. \ bounce: Will run from 0 to 1 in one duration then from 1 to 0, etc. \ bounceReverse: Will run from 1 to 0 in one duration then from 0 to 1, etc.
Interrupts the timer without resetting it.
Goes back to starting settings.
Resumes the timer from where it was stopped.
Immediatly starts the timer. \ Note that loop and bounce behaviours will never stop until you tell him to.
Immediatly starts the timer with the specified running time. \ Note that loop and bounce behaviours will never stop until you tell him to.
Immediatly stops the timer and resets it.
Update with the current deltatime (~1) If you don't call update, the timer won't advance.
Duration in seconds from witch the timer goes from 0 to 1 (framerate dependent). \ Only positive non-null values.
Is the timer currently running ?
Current behavior of the timer.
Time elapsed between 0 and the max duration.
The relative time elapsed between 0 and 1.
Simple updatable timer. \ Start with start() and update with update(Deltatime). \ Returns a value between 0 and 1.