how would i add an image once the run key is pressed. i want the image to only be up for about 30 seconds then disappear.
private int time=0;
public ClassName()
{
setImage(new GreenfootImage(0,0));
}
public void act()
{
switch (++time)
{
case 1: setImage("someImage.png"); break;
case 30*55: getWorld().removeObject(this);
}
}