After activating the level select code as described below, choose a stage, and then hold A+B and press Start. You'll be immune to enemies and projectiles.
Contributed By: KeyBlade999.
On the title screen, hold Left, Down and A together, then press Start.
Contributed By: haloboycs.