Hi, I'd like to spawn an actor after a period of time at a random position
I've already done this:
What do I have to do to do this action every 5 seconds
Thanks for your help.
x = Greenfoot.getRandomNumber(getWorld().getWidth());
y=Greenfoot.getRandomNumber(getWorld().getHeight());
while(x<=UNICORN.xpos || x>(UNICORN.xpos+50)){
x = Greenfoot.getRandomNumber(getWorld().getWidth());
}
getWorld().addObject(new CLOUD(), x,y);
