public class Counter extends Actor
{
int score = 10;
/**
* Act - do whatever the Counter wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
setImage(new GreenfootImage("Score : " + score, 24 ));
}
}
at score i get incompatible types: java.lang.string can not be converted to int
