Matrix1 Utility Plug-ins

TICKER


Syntax

Tick = TICKER( Ticker )
Tick = TICKER( Ticker, TickOnce )

Description

This function will return one of the following values:
0 - No tick is due
1 - Tick
2 - Final tick
3 - Ticker has expired

Once the ticker has returned a Final tick (value of 2), any further calls to the ticker will return a value of 3 immediately.

If your game loop is too slow and misses a tick, this function will remember how many ticks have been missed. When combined with a loop, this will allow your game to play ‘catch-up’ on any missing ticks. If you do not want or need this functionality, then you can specify a non-zero value for TickOnce when calling the function.

Go back to ...

Matrix1Util_02 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011