# Stopping a song when you leave the collision area

**URL:** <https://forums.unrealengine.com/t/stopping-a-song-when-you-leave-the-collision-area/2742698>\
**Category:** Programming & Scripting\
**Tags:** beginner, unreal-engine, music, question, Blueprint\
**Created:** [August 10, 2026, 8:38pm UTC](https://forums.unrealengine.com/t/stopping-a-song-when-you-leave-the-collision-area/2742698 "2026-08-10T20:38:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zander\_Lawrence](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zander\_Lawrence](https://forums.unrealengine.com/u/Zander_Lawrence)\
**Post date:** [August 10, 2026, 8:38pm UTC](https://forums.unrealengine.com/t/stopping-a-song-when-you-leave-the-collision-area/2742698/1 "2026-08-10T20:38:35Z")

</div>

![TwoSongs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/e/d9e9a99de41e828936fa07edb9d208226789d397.png)So, I tried this to make one song play when you enter a collision, then stopping and playing another when you leave it, but it didn´t work. The Chase song didn´t stop playing when I left and it played duplicated when I entered again.

How can I solve this?

---

<div class="post-metadata">

**Author:** ![McMillJon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcmilljon/32/1204484_2.png) [@McMillJon](https://forums.unrealengine.com/u/McMillJon)\
**Post date:** [August 10, 2026, 10:43pm UTC](https://forums.unrealengine.com/t/stopping-a-song-when-you-leave-the-collision-area/2742698/2 "2026-08-10T22:43:38Z")

</div>

Hey @Zander_Lawrence,

I’ve run into this issue myself before, and this solution worked well for me. I put together a small snippet for you to look at:

[Audio Trigger | Epic Developer Community](https://dev.epicgames.com/community/snippets/OKRo/unreal-engine-audio-trigger)

Instead of using **Create Sound 2D** (or manually creating an Audio Component), try using **Spawn Sound 2D** or **Spawn Sound at Location**. These nodes return an **Audio Component reference** , which you can store in a variable.

When the player enters the collision area, spawn the sound and save the returned Audio Component reference. Then, on **End Overlap** , call **Stop** (or **Fade Out** for a smoother transition) on that same Audio Component.

This makes it much easier to start, stop, pause, and control the music as the player enters and leaves the trigger volume.

Hopefully that helps!

---

<div class="post-metadata">

**Author:** ![Zander\_Lawrence](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zander\_Lawrence](https://forums.unrealengine.com/u/Zander_Lawrence)\
**Post date:** [August 12, 2026, 6:27pm UTC](https://forums.unrealengine.com/t/stopping-a-song-when-you-leave-the-collision-area/2742698/3 "2026-08-12T18:27:41Z")

</div>

![TwoSongs2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/7/957eecda55cb76406d55fd347e0f5c119b7e7e82.png)

I changed it to this, but the song still doesn´t stop when the overlap ends, and still plays twice when i enter again…

---

<div class="post-metadata">

**Author:** ![McMillJon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcmilljon/32/1204484_2.png) [@McMillJon](https://forums.unrealengine.com/u/McMillJon)\
**Post date:** [August 12, 2026, 10:43pm UTC](https://forums.unrealengine.com/t/stopping-a-song-when-you-leave-the-collision-area/2742698/4 "2026-08-12T22:43:50Z")

</div>

@Zander_Lawrence try doing the set up i showed and see if it worked. If it does (which it did for me at least) then you can start changing it to where it fits exactly what you need.
