Changing ax on hitting walls

I am creating a soccer game, and I want my ball to change its accelaration-x to an 8 from a -8. The project is not completed yet and I am a beginner. Pls help.

Flappy kick

Alright problem solved. Thanks for considering.