I've run into an issue where the SpriteBatch doesn't draw with modified Alpha of specified "Trail". What I'm trying to do is a "fade effect" where the alpha of "Item" decreases so that it gets more transparent until it eventually gets destroyed. However it doesn't change the alpha on it? The alpha does decrease but the alpha value of the color doesn't get modified, it stays the same color and then dissapears
Here's what happens: http://dl.dropbox.com/u/14970061/Untitled.jpg
And this is what I'm trying to do http://dl.dropbox.com/u/14970061/Untitled2.jpg
Here's a cutout of the related code I'm using at the moment.
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
for (int i = 0; i < Trails.Count; i++)
{
Trail Item = Trails[i];
if (Item.alpha < 1)
{
Trails.RemoveAt(i);
i--;
continue;
}
Item.alpha -= 255 * (float)gameTime.ElapsedGameTime.TotalSeconds;
Color color = new Color(255, 0, 0, Item.alpha);
spriteBatch.Draw(simpleBullet, Item.position, color);
}
spriteBatch.End();