i need code to show a message or image when my invader "win" and i looked threw all the help code they have
and cant seem to find what i need
i want to place it before the stop code
int count =3;
public void act()
{
// Add your action code here.
double slow = - 0.1;
setLocation(getX() -1, getY() );
Actor a = getOneIntersectingObject(bullet.class);
if (a != null)
{
count = count -1;
getWorld().removeObject(a);
}
if (count == 0)
{
getWorld().removeObject(a);
getWorld().removeObject(this);
return;
}
if (getX() < 1)
{
getWorld().removeObject(this);
Greenfoot.stop();
}
}
}

