# How to have the music "continue" after a different event trigger?

**URL:** <https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409>\
**Category:** FMOD Studio\
**Created:** [January 25, 2020, 2:10am UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409 "2020-01-25T02:10:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurilind](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/aurilind/32/313_2.png) [@Aurilind](https://qa.fmod.com/u/Aurilind)\
**Post date:** [January 25, 2020, 2:10am UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409/1 "2020-01-25T02:10:08Z")

</div>

Hey @everyone!

I was wondering if someone could help me out with a problem… let me see if I can explain it:

I have a “world map” music looping 2d event, which as the title says, it´s for the world map of an RPG. The problem I have is that whenever you enter an event on the world map and then return back to it, it triggers back from the beginning, making it very tiring for the listener.

Is there any way or any idea on how to have the music continue from where it left off from last time?

I hope it was clear… and thanks in advance! 😃

---

<div class="post-metadata">

**Author:** ![alexzzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alexzzen/32/6825_2.png) [@alexzzen](https://qa.fmod.com/u/alexzzen)\
**Post date:** [January 25, 2020, 1:42pm UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409/2 "2020-01-25T13:42:48Z")

</div>

I don’t think you can do this directly in Studio, but in your game engine you can call [EventInstance::setPaused](https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventinstance.html#studio_eventinstance_setpaused) to pause the Event. Instead of starting and stopping the event, just pause and unpause the Event. Alternatively, if you need to stop the Event, you could save the timeline position to a variable with [EventInstance::getTimelinePosition](https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventinstance.html#studio_eventinstance_gettimelineposition) before stopping the instance and setting it back with [EventInstance::setTimelinePosition](https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventinstance.html#studio_eventinstance_settimelineposition) after creating and before starting the instance.

---

<div class="post-metadata">

**Author:** ![Aurilind](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/aurilind/32/313_2.png) [@Aurilind](https://qa.fmod.com/u/Aurilind)\
**Post date:** [January 26, 2020, 6:07pm UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409/3 "2020-01-26T18:07:16Z")

</div>

OK! I´ll try it out! thank you so much! 😃

---

<div class="post-metadata">

**Author:** ![neytsomh](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/neytsomh/32/3761_2.png) [@neytsomh](https://qa.fmod.com/u/neytsomh)\
**Post date:** [June 2, 2023, 10:09am UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409/4 "2023-06-02T10:09:11Z")

</div>

I really need this feature. I usually switch sounds by label paramter in one event, so music continuing from last played position is so important for me. I hope fmod could realize it just like this feature in Wwise! 🥲

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [June 5, 2023, 8:00am UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409/5 "2023-06-05T08:00:15Z")

</div>

> [@neytsomh](#):
>
> I really need this feature.

As explained by alexzzen, we already have this feature: You can pause an event at any time, and resume it later from the point when it was paused.

---

<div class="post-metadata">

**Author:** ![neytsomh](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/neytsomh/32/3761_2.png) [@neytsomh](https://qa.fmod.com/u/neytsomh)\
**Post date:** [June 5, 2023, 10:02am UTC](https://qa.fmod.com/t/how-to-have-the-music-continue-after-a-different-event-trigger/15409/7 "2023-06-05T10:02:13Z")

</div>

> [@joseph](#):
>
> As explained by alexzzen, we already have this feature: You can pause an event at any time, and resume it later from the point when it was paused.

Thank you for reply! I’ll have a try.  
But I really hope that we can make this function in fmod studio, because I’m not allowed to change the code in the game engine. 😂
