Help debugging bounce off code issue

My student is having an issue with the bounce off command. The ball will bounce off the player but when it bounces off, it stops. Does someone see the problem in this program?


I think you have your velocityX values backwards… Switch the 5 and the -5 and it seems to work.


You were correct, Michael. Thank you! :slightly_smiling_face: