Hello !
I have some problem with an object (image) which does not appear in the right moment... but later. Why ? Here is a simplified version of my code :
if (true)
{
addObject(new Score("You win!");
Greenfoot.playSound("welldone.wav");
GreenfootSound soundyes=new GreenfootSound("applaus.wav");
soundyes.play();
while(soundyes.isPlaying())
{}
if (true)
{
Greenfoot.playSound("crush.wav");
}
}
else
{ // basically the same thing}
Greenfoot.stop();
I want each of the 3 sounds to be played sequentially and not in the same time... Here I hear the first two sounds, then the score appears and the third sound is heard.
I have checked that the score IS created at the right moment, so why does it not appear then ??
I have had the same kind of problem somewhere else but this was easier to explain, I hope tu understand in the same time all my problems ;)
Thank you very much !

