Hi everyone,
im getting an error in my Explosion class that says cannot find symbol-variable NUMBER_IMAGES. Can anyone help me figure this out? I don't know what I am doing wrong. I am a beginner at this and quite honestly, I really need a tutor on this class but if someone could help me understand what I am doing wrong and what I can do to fix it, that would be more than appreciated. Thank you in advance for your time.
Here is what I have in the explosion class:
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
/**
* Saysha
*
*/
public class Explosion extends Actor
{
/** How many images should be used in the animation of the explostion */
private final static int IMAGE_COUNT= 12;
/**
* The images in the explosion. This is static so the images are not
* recreated for every object (improves performance significantly).
*/
private static GreenfootImage images;
/** Current size of the explosion */
private int imageNo = 0;
/** How much do we increment the index in the explosion animation. */
private int increment=1;
/**
* Create a new explosion.
*/
public Explosion()
{
initializeImages();
setImage(images);
Greenfoot.playSound("MetalExplosion.wav");
}
/**
* Create the images for explosion.
*/
public synchronized static void initializeImages()
{
if(images == null) {
GreenfootImage baseImage = new GreenfootImage("explosion-big.png");
images = new GreenfootImage;
for (int i = 0; i < IMAGE_COUNT; i++)
{
int size = (i+1) * ( baseImage.getWidth() / IMAGE_COUNT );
images = new GreenfootImage(baseImage);
images.scale(size, size);
}
}
}
/**
* Explode!
*/
public void act()
{
setImage(images);
imageNo += increment;
if(imageNo >= IMAGE_COUNT) {
increment = -increment;
imageNo += increment;
}
if(imageNo < 0) {
getWorld().removeObject(this);
}
}
}

I do not see NUMBER_IMAGES anywhere in the code; therefore I cannot see how you would get that error message.