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

2019/5/27

stoping a sound when it reaches a subclass

ErasedBlade ErasedBlade

2019/5/27

#
i am currently trying to make a theme song go through multiple worlds using theme.stop however i am having no ideas of how to stop it. it wont stop in the constructor or act methods of the sublclass i want it to stop in
Super_Hippo Super_Hippo

2019/5/27

#
You need a reference to the GreenfootSound object which is playing. So when creating it, make sure you keep a reference to it or you will never be able to do anything with it afterwards.
You need to login to post a reply.