I have a problem with dialogue .. I made a class text to display dialogue and call the txt file but when I call on the MyWorld text appears only when I click, the next dialogue does not appear again, so how to create a dialogue so that the next show?
mycode in myworld :
private boolean runningStory = false;
int storyTime = 0;
public void setLevel_pilihlevel()
{
background = new GreenfootImage("pilihlevel.png");
setBackground(background);
if (runningStory)
{
storyTime++;
if (storyTime ==10)
{
addObject(new Text("PrologueText1",500, 20f),350,185);
}
if (storyTime == 20)
{
addObject(new Text("PrologueText2",500, 20f),350,185);
}
}

