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

2016/12/10

How to stop a playing song?

jhonatan.morais jhonatan.morais

2016/12/10

#
we can use Greenfoot.playSound() to play a music... but how can we stop a playing one? Thanks...
Super_Hippo Super_Hippo

2016/12/11

#
When using 'Greenfoot.playSound', you can't stop it. Create a GreenfootSound object in the active world and save a reference to it. Then you can use methods like 'playLoop' and 'stop' on it. See the GreenfootSound API for a list of all possible methods.
jhonatan.morais jhonatan.morais

2016/12/11

#
i see... thank you for confirm this information. See you.
You need to login to post a reply.