The Greenfoot Network:  Greenfoot.org    The Greenroom

Password (Forgotten it?)
    Sound in Greenfoot - Best Practices Lesson
    last edited Oct 31 2020 by Jordan Cohen

    Created by Jordan Cohen. Other contributors:

    Short description:

    Using sounds effectively for intermediate programmers

    Full description:

    Ever wonder how to make Greenfoot play the same sound effect simultaneously with itself (I.e. while the “gunshot” is still ringing out, the next one is fired)? or how to make the music stop playing when you click pause?

    I’m compiled a lesson with some best-practices that I’ve developed over the years. (I would love to hear from the Team if they agree that these are, in fact, best practices). This includes a lot of tricks that even teachers may never have considered.

    Not intended for total beginners, though it could certainly be shared with them.

    Enjoy!

    Level: Intermediate

    Teaches: Use of GreenfootSound API to create and optimize music and sound effects. Use of started() and stopped() method in World to avoid music that plays “forever”

    Available when logged in (join via the front page, for free):
    • View 10 comments on this resource.
    • View resource history, links to related resources.
    • Leave feedback for the author(s), or help by editing the resource.
    no image

    Files:
    doc 08L_-_Adding_sound_in_Greenfoot.pptx
    Lesson on Sound (downloads: 11)

    Download All
    Total downloads for all files (including previous versions): 94

    Sets:

    Created by Supported by
    Copyright King's College London, 2017. Contact us.