so im trying to make meteors fall from top to bottom but i want them to generate randomly. How do i do this?
public void act()
{
if(Greenfoot.getRandomNumber(200)<2)
{
addObject(new Meteor(),Greenfoot.getRandomNumber(600)+20,0);
}
}public void MeteorDodged()
{
MeteorDodged++;
if(MeteorDodged == 20){
MissionSuccessful();
}
}