Chapter 6
Advanced UI Movements and Graphics
Section 4
Detect Collision Events
When two images touch, the Android environment raises an event. We can use these events to our advantage. For instance, we may want to know when a missile image hits a spaceship, so that we can increment a score counter, or show a different image for the spaceship. - Detect collision events between a ball and an ImageSprite - Add logic to handle the ball and ImageSprite collision - Consider how to reset and clear the ImageSprite