2d scroller

how do i make a a scroller were my character’s movement is controlled by button