Hei, I want to stop my Either Method in my program. This my program:
public void act (){
if ( Greenfoot.getRandomNumber(100)<1){
addObject(new enemy(), Greenfoot.getRandomNumber(499), 500);
}
countTime();
if ( time == 0){
// What should i put in here?
}
}
I want "if the time == 0" the enemy is stopping spawn, and then what should i do?

