I have recently started Greenfoot or coding for that matter and i could use some help. I wish to make it so that when the Bee runs over the flower it disappears and re-spawns some were else after a short delay (maybe 1-3 seconds) but i have no clue how to make them re-spawn. (I know how to make it disappear i have done that already.)
To make the flower spawn in the first place i use the code:
addObject(new Flower(), Greenfoot.getRandomNumber(getWidth()), Greenfoot.getRandomNumber(getHeight()));
(I use this multiple times to get multiple flowers.)


