|
The Counter texture is a 2D texture that applies an LCD display onto your object, showing a number that you specify in the texture. This seems like an odd thing for a texture to do, but this is really cool since you can easily add clocks, numerical readouts, speedometers, timers, and all kinds of other displays to an object. By morphing the texture, you can even make the display count up or down any way you like! Instead of a simple calculator display, you can make a self-destruct countdown timer!
The number that the LEDs display is a simple parameter to the texture. By morphing the parameter over time, you can make it increment any way you like.
You can make more accurate decimals with the 10^X parameter. This will shift the decimal point, so the value 1997.0 will be displayed as 199.7 if you use a value of -1 or as 19970.0 if you use a value of 1.0.
You can also apply a modulus to the value, so the counter will wrap around when it hits the modulus number. For example, if you have a modulus of 60.0, 59.0 will display as 59.0, but 61.0 will display as 1.0 and 122.0 will display as 2.0. This means that you can make a repeating counter (that repetitively displays from 0 to 59) by setting the modulus to 60 and morphing the displayed number from 0 to 600. The count would wrap around 10 times.
The texture will handle decimals as well as negative numbers. There is a ghost colour for the unlit LEDs. You can obviously disable them by setting their colour to -1, -1, -1.
|