with some custom code i could change the alpha of tiles an a specific layer.
how would i start if i wanted to do the same for sprites?
i don't find the thread right now, here is the code from back then:
int overrideModulation = -1;
if (this is Spiel_Map.inventory_bg_Lyr)
{
overrideModulation = new ColorValue(255,255,255,Counter.AlphaMod2.CurrentValue).ToArgb();
}
for (int x = nStartCol; x <= EndCol; x++)
{
int[] SubFrames = GetTileFrame(x,y);
for (int nFrame = 0; nFrame < SubFrames.Length; nFrame++)
{
Frame f = m_Frameset[SubFrames[nFrame]];
spr.Transform = Matrix.Multiply(f.Transform, Matrix.Translation(
x * nTileWidth + CurrentPosition.X + ViewRect.X,
y * nTileHeight + CurrentPosition.Y + ViewRect.Y, 0));
spr.Draw(f.GraphicSheetTexture.Texture, f.SourceRect, Vector3.Empty, Vector3.Empty, overrideModulation==-1?f.Color:overrideModulation);
}
}
}
just in case: i know i could do it without creating custom code.