Nightmare is one of the most difficult bosses in the game. Nightmare is fought in three phases.
PHASE ONE: Nightmare flies at the same height as Samus and shoots 6 lasers out of its arms. Space Jump to the upper-left corner by the broken door to lure him to the top of the screen, then Space Jump beneath him and hit the gravity unit with a Charge Beam. Two shots will reach the next phase.
PHASE TWO: The gravity unit activates, making Samus fall slower and hinders jumping. He will also fire lasers from his arms. If you kept him at the top of the screen, all you have to do is stand beneath him and jump and fire Charge Beams at him. After six shots, the gravity unit will flash and slime will dribble out of Nightmare’s mask. Missiles and any other object will be sucked towards the gravity unit.
PHASE THREE: The hardest part. Nightmare will fly towards you slowly, firing a steady volley of lasers from his arms. If you jump on the ladder, you can pummel him in the face with Super Missiles or the Charge Beam while he flies towards you. When Nightmare is roughly one or two tiles away from Samus, watch his volleys and drop to the ground beneath him, Morph Ball, and roll under him. Proceed to Space Jump around him, taking a few shots at his face when he flies towards you, then dropping down and Space Jumping back up behind. After several seconds, he will resume flying slowly at Samus. Jump back on the ladder and repeat.
Defeat the Type A Core-X to gain the Gravity Suit.