Collision

How do i make my code so if 3 object fall on the ground or pass through the ground then it switches to the game over screen. My idea is spawning balls falling down and when three of them pass the ground i want my screen to switch to game over. [import]uid: 132369 topic_id: 24422 reply_id: 324422[/import]

Take a look at this I put up for just this reason. Very simple and should be easy to get the start you are looking for. Simply make a counter and each time a bubble hits the ground, add’em up.

http://developer.anscamobile.com/code/quick-bubble-popper
[import]uid: 21331 topic_id: 24422 reply_id: 98787[/import]

Thanks for replying. I am new to Corona . If you can, please give me your email address so I could send you an invite to my dropbox. It would be nice if you could take a look at my project and help me with the counter. Thank you [import]uid: 132369 topic_id: 24422 reply_id: 98807[/import]

I want to help you, but I am getting pretty loaded up already. We need to get you to be able to add a simple counter to this code or you’re gonna have a really hard go of it. Put your code to the side for a sec, take my code, and see if you can have it count up three collisions with the ground before calling EndGame. This should be VERY easy. You will need to know far more than this to make a go of game programming, so see what you can do. I’ll keep an eye on this thread. [import]uid: 21331 topic_id: 24422 reply_id: 98810[/import]