Answered
0
0

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

  • You must to post comments
Best Answer
1
0

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#/
  3. FMOD Studio and UE4 integration: 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_EventInstance_Start.html

https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventInstance_Stop.html

Thanks,
Richard

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.