# 2D game sound sytem using FMOD

**URL:** <https://qa.fmod.com/t/2d-game-sound-sytem-using-fmod/13555>\
**Category:** Unity\
**Created:** [November 24, 2017, 6:52pm UTC](https://qa.fmod.com/t/2d-game-sound-sytem-using-fmod/13555 "2017-11-24T18:52:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbmusicpl](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@mbmusicpl](https://qa.fmod.com/u/mbmusicpl)\
**Post date:** [November 24, 2017, 6:52pm UTC](https://qa.fmod.com/t/2d-game-sound-sytem-using-fmod/13555/1 "2017-11-24T18:52:12Z")

</div>

Hi,  
I have to make sound system using Fmod in 2D game but i can’t get trough scripting.

- UI button click
- Loop sound while player moving
- Animation events sounds - that i know
- Spells sounds

Could You help with some scripts examples? There is Fmod pdf about scripting but for nonprogrammer it’s not clear enough

thx

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [November 27, 2017, 1:11am UTC](https://qa.fmod.com/t/2d-game-sound-sytem-using-fmod/13555/2 "2017-11-27T01:11:21Z")

</div>

Hi Maciej,

You need to look into creating and starting event instances in your game engine. This differs between engines so you can take a look into one of the following for examples:

1. FMOD Studio & low level API examples (download “FMOD Studio API” from your account)
2. FMOD Studio and Unity integration: [https://www.fmod.com/resources/documentation-api?page=content/generated/engine\_new\_unity/scripting.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/engine_new_unity/scripting.html#/)
3. FMOD Studio and UE4 integration: [https://www.fmod.com/resources/documentation-api?page=content/generated/engine\_ue4/programming.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/engine_ue4/programming.html#/)

In particular take a look into creating, starting, and stopping event instances:

[https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventDescription\_CreateInstance.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_CreateInstance.html#/)

[https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventInstance\_Start.html](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventInstance_Start.html)

[https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventInstance\_Stop.html](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventInstance_Stop.html)

Thanks,  
Richard
