You need to know about Collision detection. This is knowing when two objects touch each other. There are two schools of thoughts. 1. Use Physics. 2. Don’t use Physics. For instance I built a space shooter without physics. I used some simple detection methods to know when an enemy bullet hit my space shop or when my weapons hit them. No physics was involved. All object movement was done with transitions and positioning during the “game loop” (Runtime enterFrame event). With this you have to actively check the objects positions continuously. It seems like a lot of work, but it’s really quite simple.
But for many people, they would want to use physics for a couple of reasons: 1. more realistic movement of your ball 2. you get notified when objects hit each other instead of actively checking yourself. Without knowing more about your game, it would be hard to advise which way to go. Physics adds overhead, but then makes other things easy.
If you want to go without physics, look at: http://coronalabs.com/blog/2013/07/23/tutorial-non-physics-collision-detection/
If you want to go with physics, then we have a boat load of tutorials at http://coronalabs.com/resources/tutorials/getting-started-with-corona/ to get you started. Look in the physics section. Also go to the Documentation at the top and then click on the Guides link. There is a physics guide there that covers all of it as well.
Rob