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

2017/2/25

Performance problems while playing sound.

elroxar elroxar

2017/2/25

#
Hey Guys. I'm currently working on a game and wanted a music file playing in the background. Right now I'm starting it in the constructor of my world
public Intro()
{
Greenfoot.playSound("FeverRay.mp3");
}
The sound is playing but as soon, as I push the run button to start my code i get really big performance drops and I have to quit my program. I tried the code without music and the music without code and it runs perfectly but the combination is a problem. Does anybody know about this problem?
Super_Hippo Super_Hippo

2017/2/26

#
Any chance you are creating multiple Intro objects?
elroxar elroxar

2017/2/27

#
Super_Hippo wrote...
Any chance you are creating multiple Intro objects?
Could be. I will have a look. Thanks a lot.
You need to login to post a reply.