1 if (mbFadeout) 2 { 3 U32 u32TimeDiff = (timeGetTime() - mu32StartTime)+1; 4 5 GlowColor.a = 255 - ((255*u32TimeDiff)/mu32TimeToLive); 6 // Change glow color to just alpha and make fade 7 GlowColor.r = 0; 8 } 9 PhysicalObject::Draw(PlayerLoc, GlowColor); 10