For our game GTA i have 2 counters.. one for the thief points and one for the police point. In my subclass city from world i put the following add objects..
I see the points on my 1 counter calculated by 15.. but i dont see my points calculated in counter2..
I get the error message
"Constructo Counter2 in class Counter2 cannot be applied to given types;"
Why is this? because it works perftectly for the first counter (counter.class)
please help me..
public Stad() { super(1600, 875, 1); Greenfoot.setSpeed(50); PlaatsSpelers(); PlaatsObstakels(); PlaatsBurgerautos(); prepare(); addObject (new Counter(score),86, 48); addObject (new Counter2(score) ,1473, 50); addObject (new Garage(),1336, 373); addObject (new Garage2(),272, 800); } and for the points /** * De punten telling * */ public void arrest() { removeObjects (getObjects(Counter2.class)); score += 100; addObject(new Counter2(score),1473, 50); } public void gejat() { removeObjects (getObjects(Counter.class)); score += 15; addObject(new Counter(score), 86, 48); }