So I found this weird glitch where you don't spawn when you start, but the game keeps on running. You only spawn when you press jump or attack. I'm not sure how to reproduce this glitch.
In order to get the trophy on level 24, rebound the ball off the metal thing in order to get the ball behind the net. Also, according to the walkthrough, there is only 935 coins.
Thanks, I will look into it.