Looking at it, it seems mostly correct, so far, separating the X and Y speed components; changing the "if Ball Y Speed < 2" to "if Ball Y Speed = 1" should work (untested)
Okay, this one shoud work:
Example project: https://github.com/user-attachments/files/17498770/vcs-game-maker.bounce-ball.pr...