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

2017/2/16

Stop the music

Steiner_Man Steiner_Man

2017/2/16

#
I took another suggestion to apply music to a sound variable. I am attempting to get a song to stop on command. But changing the world does not work since that world still exists underneath the new world. Likewise, I don't want music to begin playing before the run button is pressed. Any ideas?
Super_Hippo Super_Hippo

2017/2/16

#
Create a GreenfootSound object. Then you can start/pause it in the started/stopped methods in your world which are automatically called once whenever the scenario is started/paused.
You need to login to post a reply.