# How might I put sounds & a background picture into my game?

**URL:** <https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950>\
**Category:** ChoiceScript Help\
**Created:** [December 4, 2012, 6:40pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950 "2012-12-04T18:40:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [December 4, 2012, 6:40pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950/1 "2012-12-04T18:40:38Z")

</div>

Like the title says how might I go about doing this?

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [December 4, 2012, 7:20pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950/2 "2012-12-04T19:20:19Z")

</div>

Nevermind, I have music within the story now but I will need to figure out how to change the songs according to pages

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [December 4, 2012, 7:40pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950/3 "2012-12-04T19:40:15Z")

</div>

Sound would require external JavaScript functions, something we’ve recently decided to not ‘endorse’ or encourage on the forums - You’re welcome to use it by all means, but it’s considered a ‘your on your own’ field, as it’s too hard to explain to the majority of authors as it lies outside the bounds of choicescript and its intended simplicity.

Basic sound tutorial/info can be found here:

> **[Adding Sounds](https://choicescriptdev.fandom.com/wiki/Adding_Sounds)**
>
> With the addition of the sound command to ChoiceScript the following article has been rendered obsolete. Ambiental sounds are the sounds that play in the background of the game, and that don't signify any action in-game (for example, clicking the...

In addition I wrote some very simple JavaScript functions to deal with sound control, as part of my current game: [http://dl.dropbox.com/u/7840892/terminal/mygame/index.html](http://dl.dropbox.com/u/7840892/terminal/mygame/index.html)

The script for all of those sound functions can be found in this file: [http://dl.dropbox.com/u/7840892/terminal/script.js](http://dl.dropbox.com/u/7840892/terminal/script.js)

And to call those functions you use the [\*script command](http://choicescriptdev.wikia.com/wiki/Script).

Sadly that’s about all the help we can give you in relation to sound without sitting here and physically teaching you JavaScript, which is why we say it’s unsupported territory.

To change the background you need to edit the style.css file, I discuss briefly how to do this in another thread: [http://www.choiceofgames.com/forum/discussion/comment/45441/#Comment\_45441](http://www.choiceofgames.com/forum/discussion/comment/45441/#Comment_45441)

I hope that helps somewhat and please don’t let me dissuade you from using sound and extra functionality, I love innovation - Just understand that you’re not likely to get a lot of detailed help on such advanced topics on this particular site – People simply don’t have either the time or expertise.

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [December 4, 2012, 9:21pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950/4 "2012-12-04T21:21:23Z")

</div>

Thank you once again CJW, you dont disappoint and Im playing Terminal now how long did it take you to make it?

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [December 4, 2012, 9:36pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950/5 "2012-12-04T21:36:36Z")

</div>

Always happy to help 🙂  
The current version of ~ Terminal only took me about 3-4 days/evenings of solid writing/coding (not including its conception).  
The upcoming chapter(s) are taking considerably longer though…

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [December 5, 2012, 2:21pm UTC](https://forum.choiceofgames.com/t/how-might-i-put-sounds-a-background-picture-into-my-game/950/6 "2012-12-05T14:21:21Z")

</div>

I cant wait to see how it will turn out :3 You’ve earned yourself a fan
