This site requires JavaScript, please enable it in your browser!
Greenfoot back
DoomN1nja
DoomN1nja wrote ...

2012/12/4

What's wrong with this? MkII

DoomN1nja DoomN1nja

2012/12/4

#
private void Music() { if (Greenfoot.isPlaying("Conclusion.wav") = true) { } else { Greenfoot.playSound("Conclusion.wav"); } Keep getting the error 'cannot find symbol - method isPlaying' Any Ideas?
tylers tylers

2012/12/4

#
you need to use GreenfootSound class instead of Greenfoot
GreenfootSound sound = new GreenfootSound("bg.mp3");  
if(!sound.isPlaying())
        {
             sound.play();
        }
You need to login to post a reply.