Once I add text onto the screen I remove it when it is clicked on, but then I want to know how to add another text image onto the screen through the same actor. I do not know how to add the text in one actor. Here is some of the code.
public class ToStart extends Actor
{
public ToStart()
{
setImage(new GreenfootImage("Click here to Start", 40,Color.WHITE, null));
}
public void act()
{
if (Greenfoot.mouseClicked(this))
{
getWorld().removeObjects(getWorld().getObjects(Instructions.class));
getWorld().removeObjects(getWorld().getObjects(ToStart.class));
}
}
}