'Sup, so I'm coding for a song to stop when an object is clicked but if the object hasn't been clicked yet the song would be played on loop and I know that the code should look like this
but the thing is the song doesn't stop for some reason?
GreenfootSound song = new GreenfootSound("MusicScreen.mp3");
if (Greenfoot.mouseClicked(this))
{
song.stop();
}
else
{
song.playLoop();
}
