Color change example using logic and actions and a property

I have seen this come up a number of times recently so !!

Here is a action/property based method to change the color of a object or transparency in game

It’s uv mapped and textured,

So keyframed “Object Color” at frames 0 100 200 300 400 500

0 = [1,1,1]
100 = [1,0,0]
200 = [0,1,0]
300 = [0,0,1]
400 = [1,1,0]
500 = [0,1,1]

So by using the property to apply the action, you can set an objects color.

press space to start the for loop that cycles the colors

Attachments

ColorExample.blend (572 KB)