Game Development Community

useCustomAmbientLighting does not reflect change in game

by LMNOPenguin · in Technical Issues · 11/14/2009 (8:35 pm) · 0 replies

I'm using TGE 1.5.2.

For the game we are making, we want some of the buildings in the background to have ambient lighting, but only after a certain point.



building1.customAmbientLighting = "0.403922 0.65098 0.937255 1";
building1.useCustomAmbientLighting = true;

This works ONLY AFTER I move the building in the editor (obviously the player can't do this).

Any suggestions? I've tried setscale (which usually works with emitters and other stuff that needs to update, but doesn't).

Thanks.