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

Report as inappropriate.

ET78759
ET78759 presents ...

2017/5/14

Sounds

This is a really boring scenario where you press the right or left arrow keys to make noise. If you want, you can download the scenario and change the sounds.

6562 views / 18 in the last 7 days

1 vote | 0 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/14

If the sound only activates from pressing the arrow keys, then what is the point of the blue circle in the middle of the frame (unless it's just decoration).
ET78759ET78759

2017/5/17

The button is for decoration and is an object that produces sound(because the button class creates the sound).
YehudaYehuda

2017/5/17

If you're only using the blue circle to play sound, then the coding for playing the sound can just be in the world class. All this scenario does is plays sound with a background picture showing, so you just need one class with code in it which plays sound.
ET78759ET78759

2017/5/17

But the button is supposed to be for decoration, which is why it's there.
YehudaYehuda

2017/5/17

Is the button an Actor? If it is then you can just do getBackground().drawImage and draw the button onto the World's background. (I guess it's a matter of opinion, but I don't think that the blue circle is very decorative.)

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

Who likes this?

romadebrian