Tried to make a score counter but it doesn't work.
World class:
Actor:
Counter:
Can anyone help?
Counter1 counter1 = new Counter1();
public Counter1 getCounter1()
{
return counter1;
} if(isTouching(a.class))
{
counter1.addScore(1);
}int score = 0;
public void act()
{
setImage(new GreenfootImage("Score: " + score, 24, Color.BLUE, Color.RED));
}
public void addScore()
{
score++;
}



@Super_Hippo
1. Yes. 
