I am trying to create a simple game where a space shit shoots asteroids moving along the screen.
In trying to set the counter so that it is actually visible, I am getting an error to do with the Color.WHITE and I'm assuming its the same for Color.BLACK. The error says "cannot find symbol - variable Color" Any ideas?
Here is my whole code for the counter section:
public class Counter extends Actor
{
private int totalCount = 0;
public Counter()
{
setImage(new GreenfootImage("0", 20, Color.WHITE, Color.BLACK));
}
public void bumpCount(int amount)
{
totalCount += amount;
setImage(new GreenfootImage("" + totalCount, 20, Color.WHITE, Color.Black));
}
public void act()
{
// Add your action code here.
}
}

