I am making a game in which a spaceship is going through an asteroid field. I am trying to code it so that when an asteroid hits the ship, it blows up. can anyone help?
The DoctorProfessor is out
For an explosion you can either create some explosion images and after every act change the image of an explosion object to the next image or you can use only one image and change it's size.
In the Luna Lander scenario you'll find an example for this.
Luna Lander is a Greenfoot demo which you'll find in your greenfoot installation directiory.