Need a 2d sidescroller shooting mechanic

this would help me if i was doing a 3d side scroller but i am creating a paper 2d side scroller :confused: