Upbge 0.3 change color object when textured

Is this possible to change color object material in code when the material diffuse is a texture ? to simulate brief impact damage before putting back the original color.

Or must i use emissive color for such effect instead ?

Use object color R g or b to drive it

Controller.color did not change color.

this is simple to make

when run


I typically use the trick to get a rainbow from 0 through 1 with hsv leaving g and b for driving other FX

that would be overkill for what he is trying to do :smile:

1 Like

yeah it’s just handy to know it’s possible so we can have every object have unique material transitions / FX etc