animations won't play

i made it to where my game is a auto side scroller and it litterly worked! my only problem is the animation won’t play when you hit a wall