I'm trying to make a counter appear in a certain area using the getWorld.addObject, my code isn't working. Here's my code
}It keeps saying " ')' expected after the (new Counter() part and I can't find a fix, someone help?
{
if (Number == 1)
{
if (Used_1 == 0)
{
Used_1 = 1;
setImage (new GreenfootImage("27 - 26 ?", 46, Color.BLACK,Color.WHITE));
Greenfoot.delay (120);
world().addObject(new Counter() 28,28;
}
}
}

