I want to create new actors (meteorite hits). Between two meteorite hits I want a certain time delay. I used the various options offered in the discussion and they all work. What I couldn't achieve though is to create the hits on a linear time scale, i.e. a new hit every 5 seconds or so. What happens is that after the first three or four hits I get 2 at a time then 4 and so on. Thus my question to the geeks: is the act method on a linear time scale? If no, how can I create a linear behaviour?
here is the code I used to create the actor:
The "dropMeteorite" method is in the act method of the MeteoriteHit class. When I put it there without any of the delay methods and set the greenfoot timer to very slow, I observe the "non linear" behaviour described above.
I am using Greenfoot 2.4.0. with oracle java and a linux mint operating system.
public void dropMeteorite(){
MeteoriteHit newHit = new MeteoriteHit();
int xPos = 25+Greenfoot.getRandomNumber (550);
int yPos = 25+Greenfoot.getRandomNumber (650);
getWorld().addObject(newHit, xPos, yPos);
}


