materials in GE

I am having a problem. What is it you ask? How do you animate materials on command in BGE?

use a f-curfe actuator, attach always sensor