Number 3 : As the star nears the end of its life there is no more fuel to burn and make it shine. Its core will collapse under its own mass. The first stage: The core of the star collapses and releases a shockwave. For a few hours the shock compresses and heats the envelope. This creates a very bright flash from the inside the star.