1 // if the type is FadeOut, then lessen tghe alpha 2 if (mpItemDetails->Type == "Fadeout") 3 { 4 sf::Color AlphaColor(0, 0, 0, 255); 5 U32 u32TimeDiff = (timeGetTime() - mu32StartTime)+1; 6 7 AlphaColor.a = 255 - ((255*u32TimeDiff)/mu32TimeToLive); 8 PhysicalObject::Draw(PlayerLoc, AlphaColor); 9 }