hi i have a little problem i have changed the material color from a plane with 2 scripts red and green at this scripts i have 2 keys r and g if iam in the game mode and press the key the color dont does change of course i have redraw() at the end of the script but the color does just change if i have left the game mode then
You don’t have to use Python to accomplish this task - just set up logic bricks properly: property sensor from object DOOR_01 connect to controller and actuator of object, where you want to change a mesh.
Anyway, in your script is a mistake in the first line: “GamLogic” and object names has prefix “OB”, so it won’t be found in loop.
sorry for teh gam. mistake and many thx for the OB prefix the script does now working fine and i dont need to change the texture i just change the whole plane