--- tags: sound,resource title: Get and set sound brief: This example shows how to change which sound a sound component plays author: Defold scripts: get_set_sound.script --- This example shows how to change which sound a sound component plays. Additional sounds are stored as individual .ogg files in the `sounds` folder and included in the build as [Custom Resources](https://defold.com/manuals/file-access/#custom-resources): ![](game_project.png) The example consists of a single collection with a game object containing a Sound component, a Sprite component for visuals and a Script to control the logic: ![](get_set_sound_collection.png) Sound effects and space ship by [Kenney](https://www.kenney.nl)