I made a score. My code is below. However I want the score to increase as the game continues. Right now its just static.
public class counter extends Actor
{
int score = 0 ;
public void act()
{
setImage(new GreenfootImage("Score : " + score, 30, Color.BLACK, Color.WHITE));
}
public void addScore()
{
score++;
}
}


