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

Report as inappropriate.

ET78759
ET78759 presents ...

2017/5/17

Sounds(Broken)

This version of Sounds(one of my scenarios) is broken. "How?" you may ask, and the answer is... you'll see. Press either the left or right arrow key to discover the magic.

589 views / 13 in the last 7 days

Tags: with-source

This scenario is a member of: ET78759's Games


open in greenfoot
Your browser does not support the canvas tag.
YehudaYehuda

2017/5/17

The blue circle is probably still not necessary. What's broken about this? (That you warped the sound?)
ET78759ET78759

2017/5/18

Yeah, basically.
ET78759ET78759

2017/5/18

Ok then... I'll just make it more broken then.
danpostdanpost

2017/5/18

The problem is you are creating multiple instances of the GreenfootSound class (and probably using 'Greenfoot.playSound(String filename)' to play them. Create only one GreenfootSound object either in the world constructor or when declaring the field that is to hold it: private GreenfootSound sound = new GreenfootSound(filename); Then use: sound.play(); to play the sound.
A new version of this scenario was uploaded on 2017-05-19 01:27:13 UTC Made scenario even more broken...

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.