The ticker plug-in is used to generate and inject an event called 'tick' into the curent state of the state machine at regular intervals. The plug-in defines both entry and exit property functions on the State Behaviour Object which are used to start and stop the event generation respectively.


prop tickerrequired

Used to set the frequency of the 'tick' events in number of milliseconds (thousandths of a second).


event 'tick'

The name of the event generated and injected into the current state of the state machine at regular intervals. The event has a single argument set to the number of 'tick' events generated by the plug-in for a state since entering the state.


Example

See