Here you go Max.
The ZIP file is attached and it has the main.agc and the media included.
Nothing fancy here, just a simple example for applying the forces to the ball.
I did not animate any sprites just tot save time, so the players slide.
I could have used a FOR NEXT loop for the player collisions, but I did it straight forward thinking the differences would be easier to see.
I know my code for this is sloppy, but it was whipped up in a hurry, so...
I hope this helps.
OOOPS
I forgot to tell you...
the A and D keys are for blue players movement.
the Left and Right Arrow keys are for the red players movement.
P.S.
I used the ball that was included with AppGameKit, so I hope it is okay to redistibute it here for an example. (edited the color though)
If not, then a mod can post here and I will swap it out for a different ball.