ColorTextureAlpha
Last updated
Was this helpful?
Last updated
Was this helpful?
The ColorTextureAlpha color operation can be used to make an object apply a solid color to all opaque pixels, yet retain its transparency. This can be used to create silhouettes or objects which flash, such as enemies taking damage.
The following code flashes a Sprite white when the Space key is pressed: