Changing material color in real time

Hello. Sorry for my noob question. how can i change the material color in game. now i’m trying to o that in this way:["Cube"].active_material.diffuse_color=(255,0,0)

but it makes a changes only after stop game simulation. Could you please help me to change the material in the game on the fly.


You can change the object color as suggested by m10.
You can change the color of a vertex (slow).
You can replace a mesh (e.g. with a mesh with other material).
You can replace texture with VideoTexture.

Haha nice picture Monster, who made it? :smiley:

Thanks a lot