public class MainWorld extends World
{
[Embed(source="../../assets/Tile0002.png")]
private var gameGraphicImg:Class;
private var img:Image;
private var gameEntity:Entity;
public function MainWorld()
{
img = new Image(gameGraphicImg);
gameEntity = new Entity(32, 32, img);
add(gameEntity);
}
override public function update():void
{
super.update();
img.color = 0x008080;
}
}
So I tried to recreate the bug with a simple project that simply adds an Entity and changes its graphic’s color. I was able to successfully recreate it. Unless the image’s color has been set before in the begin function or constructor and the color it was set to wasn’t white, the color doesn’t change.