TGB/Behaviors/Counter

From TDN


Counter
Description:

This Counter behavior basically stores a count value, which can be modified by other behaviors. The behavior itself tries to set the text of the object it is attached to, so that it indicates the value of the count. Typically you would attach this to a text object if you want a visible value (say a score, or number of lives left or some such). See also the Count On Death behavior, as these work together.

TODO: make this behavior "tick" so that you can alter the value over time (like an odometer)


 Download:

Counter

Download the zip file and drag it onto the TGB window to add it to your project.



Back to Behavior Listing