Help with a Platform/Pilot style game

*Title Mistake; Its a sidescrolling shooter.
Hi I was having trouble making the background to kill the sprite/spaceship when it comes in contact with it. to help you know whats needed it kinda looks like this but a lot lot more simplified.

thanks.