首先想到的是您应该查看SpriteBatch.SetColor。
有了它,您可以控制您计划使用的叠加图像的颜色和透明度,如果您将 alpha 值与时间联系起来,您将能够使事物出现/消失。
编辑:
需要记住的重要一点是,请记住将 spritebatch 颜色设置回白色和不透明(或您喜欢的颜色),以便像以前一样绘制:
//Drawing Normal Textures
spritebatch.begin();
spritebatch.draw(myNormalTexture, x, y, w, h);
spritebatch.end();
//Drawing Transparent Textures
spritebatch.setColor(1, 1, 1, transparencyLevel);
spritebatch.begin();
spritebatch.draw(myTransparentTexture, x, y, w, h);
spritebatch.end();
//Back to Drawing Normal Textures
spritebatch.setColor(1, 1, 1, 1);
spritebatch.begin();
spritebatch.draw(myOtherNormalTexture, x, y, w, h);
spritebatch.end();