Hi there sorry to bother you again but this isnt working and I don't know why?
public class ShotInterfere extends Actor
{
GifImage explosion = new GifImage("Steam-Explosion.gif");
GreenfootImage imageOne;
boolean notImageOne;
public ShotInterfere()
{
List <GreenfootImage> images = explosion.getImages();
imageOne = images.get(0);
for(GreenfootImage img: images)
{
img.scale(75, 75);
}
setImage(explosion.getCurrentImage());
}
public void act()
{
setImage(explosion.getCurrentImage());
if((getImage() != imageOne) != notImageOne)
{
notImageOne = !notImageOne;
if(!notImageOne)
{
getWorld().removeObject(this);
}
}
}
}
