Hi. I'm working on a project where I spawn objects that spawn at specific times and move afterwards, but when I use Greenfoot.delay() I end up creating all of the objects first and then they move. How can I fix this?
public void playSong()
{
pauseTime = 1000;
World world = getWorld();
noteA notea = new noteA();
noteS notes = new noteS();
noteD noted = new noteD();
noteF notef = new noteF();
noteG noteg = new noteG();
Greenfoot.delay(50);
world.addObject(notea, 50, 50);
Greenfoot.delay(25);
world.addObject(notes, 150, 50);
}


