Hi, I want to make my turret explode when an enemy touches it. So far the explosion will consist of 25 images so I would need an array of it. Is this correct in making an array of pictures?
Also i made the explosion its own class. How would i come about making the explosion when an enemy touches the turret?
thanks
private GreenfootImage[] turretExplosion; turretExplosion = new GreenfootImage[25]; //filling the array with pictures for (int i = 1; i == 25; i++) { turretExplosion[i] = new GreenfootImage ("turretExplosion/i"); }