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

2019/2/5

Help on background music!

SniperRocks SniperRocks

2019/2/5

#
I have my background music, i already put it in the code and know how to play it when i hit play or pause it when i hit pause but what i need help on is when it goes from the start screen to an arenaone the music keeps on playing, how do i stop it from playing? you get what i mean? like when it goes to arenaone i want the music to stop playing and have another music play for arenaone
danpost danpost

2019/2/5

#
Just stop it when you set the new Areaone world active:
// in selection class (line 49?)
Greenfoot.setWorld(new Areaone());
backgroundMusic.stop();
SniperRocks SniperRocks

2019/2/7

#
when I open up greenfoot the music plays itself, how do I make the music play when I press run.
SniperRocks SniperRocks

2019/2/7

#
I would've replied earlier but my laptop broke
danpost danpost

2019/2/8

#
SniperRocks wrote...
when I open up greenfoot the music plays itself, how do I make the music play when I press run.
Instead of starting it from the world constructor, you could tell it to play from the act method of your world class (or in a started method).
SniperRocks SniperRocks

2019/2/13

#
hey wassup dan, i have an issue going on and its the greenfoot software. i tried opening it but it doesnt pop up. Ive uninstalled the software and installed it back again but it doesnt pop up, any suggestions?
SniperRocks SniperRocks

2019/2/13

#
ive got a plan so hopefully itll work, ill give an update tomorrow evening.
You need to login to post a reply.