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

2020/9/5

How to start music if the scenario runs?

1
2
TerminatorHD TerminatorHD

2020/9/5

#
Caused by: java.lang.IllegalArgumentException: Could not open sound file: BossMusic.mp3 at greenfoot.sound.SoundExceptionHandler.handleIOException(SoundExceptionHandler.java:66) at greenfoot.sound.SoundFactory.createSound(SoundFactory.java:120) at greenfoot.GreenfootSound.<init>(GreenfootSound.java:54) at Musik.<clinit>(Musik.java:13) ... 11 more Caused by: java.io.FileNotFoundException: Could not find file: BossMusic.mp3 at greenfoot.util.GreenfootUtil.getURL(GreenfootUtil.java:189) at greenfoot.sound.SoundFactory.createSound(SoundFactory.java:99) ... 13 more
TerminatorHD TerminatorHD

2020/9/5

#
Ok never mind I got the issue....one letter was wrong. Sorry for wasting your time for this
danpost danpost

2020/9/5

#
Maybe you should check out my BGMusic Actor Class Demo scenario.
TerminatorHD TerminatorHD

2020/9/5

#
Yeah sure, I will look into it. Would you tell me how I can interact with my classes? I thought its public first but I didn't found anything. So..should I use "static" for those purposes?
danpost danpost

2020/9/5

#
TerminatorHD wrote...
Yeah sure, I will look into it. Would you tell me how I can interact with my classes? I thought its public first but I didn't found anything. So..should I use "static" for those purposes?
Again, probably not. But, cannot tell for sure. Must be considered individually.
You need to login to post a reply.
1
2