Hi, I want to add a certain amount (50) of actors. I already have the following in my world class:
What am I doing wrong?
int meteorAmount = 50;
public Dodge_Meteor()
{
super(1184, 670, 1);
addObject(mainSpeler, getWidth()/2, getHeight()/2); //Speler toevoegen
meteor = new meteor[meteorAmount];
int y = Greenfoot.getRandomNumber(getHeight()); //en y is een random waarde -> ze spawner overal qua hoogte
addObject(meteor, getWidth(),y);
}


