the code is:
turn(Greenfoot.getRandomNumber(360));
move(5);
{
if(Greenfoot.getRandomNumber(1) == 0)
{
fliegeAusspucken(); //its a method to spawn another actor at the place this actor is being rn
}
}
i want to make the actor stop after the fliegeAusspucken. But when i use Greenfoot.delay or something else it stops the whole scenario. Can someone fix this please?