Skip to content

Counter

The Counter is an in-game Object of a digital counter. It has its own class, Counter, with functions/members associated with it. This allows you to manipulate the special properties of a Counter. You call these functions like this: self.Counter.increment().

Function Summary

Object Functions

Function Name Description Return
clear() Resets Counter to 0.
decrement() Reduces Counter's value by 1.
getValue() Returns Int of the current value displayed by the Counter. This function acts the same as Object's getValue().
increment() Increases Counter's value by 1.
setValue() Sets the current value of the Counter. This function acts the same as Object's setValue().