# How to return from where we came by using transition region

**URL:** <https://qa.fmod.com/t/how-to-return-from-where-we-came-by-using-transition-region/14137>\
**Category:** FMOD Studio\
**Created:** [October 12, 2018, 8:50am UTC](https://qa.fmod.com/t/how-to-return-from-where-we-came-by-using-transition-region/14137 "2018-10-12T08:50:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexVaulin](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@AlexVaulin](https://qa.fmod.com/u/AlexVaulin)\
**Post date:** [October 12, 2018, 8:50am UTC](https://qa.fmod.com/t/how-to-return-from-where-we-came-by-using-transition-region/14137/1 "2018-10-12T08:50:38Z")

</div>

Hello!  
Let’s say we have two compositions “no-battle” and “battle” music themes. I have transition region to battle theme that trigger every time when we encounter and fight an enemy.  
Is it possible to create a transition region that will trigger every time we defeat an enemies and moves us back to no-battle theme at the moment where we were interrupted so music theme will keep on playing smoothly?

---

<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:** [October 15, 2018, 7:20am UTC](https://qa.fmod.com/t/how-to-return-from-where-we-came-by-using-transition-region/14137/2 "2018-10-15T07:20:26Z")

</div>

Hi Aleksey,

It would be very difficult to do this smoothly from within a single event. It would be a lot simpler to have two separate music events (no-battle and battle) and use setPaused(true) to stop the playback of the no-battle music and setPaused(false) when starting it again.

I would also recommend having a game parameter to control the volume of the master track of the no-battle event, with some seek speed to smoothly ramp in and out.

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

[https://fmod.com/resources/documentation-studio?page=authoring-events.html#parameters](https://fmod.com/resources/documentation-studio?page=authoring-events.html#parameters)

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![AlexVaulin](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@AlexVaulin](https://qa.fmod.com/u/AlexVaulin)\
**Post date:** [October 15, 2018, 7:56am UTC](https://qa.fmod.com/t/how-to-return-from-where-we-came-by-using-transition-region/14137/3 "2018-10-15T07:56:38Z")

</div>

I will try it! Thank you!!
