I've been trying to add Quests to my game. Now, I want it to change the text when you click on the quest, but it doesn't seem to work well.
before I click
after I click
It doesn't really look pretty, as you can see. Help would be appreciated, thx.
protected void addedToWorld(World myWorld){
Color Transparent=new Color(0,0,0,0);
setImage(new GreenfootImage("! Pesky Mushrooms",15,Color.GREEN,Transparent));
}
public void act()
{
Color Transparent=new Color(0,0,0,0);
if(Greenfoot.mouseClicked(this)){
setImage(new GreenfootImage("QUEST\n Hey, you! Could you kill 5 mushrooms for me?\n They're really annoying. Just go east. \n Y/N",15,Color.BLACK,Color.BLUE));
}
}
after I click
It doesn't really look pretty, as you can see. Help would be appreciated, thx.
