Actually, I have another thing I'm confused about.
How do I make it so the ball object destroys itself after 2 bounces? I tried putting a private variable and making it add to the variable every time it collides with a solid, but it doesn't work. When I look at it through debug mode, the variable stays at 0.
I'm also trying to make it play a "ricochet" noise but that doesn't work either when I tell it to play the wav while the bullet collides with the platform. There doesn't seem to be an option to check whether the ball has bounced off of something or not.