Music playing offset action is not working / Resets to 0

Hi everyone,

I encountered an issue while developing my game. My goal was to have the music in the second scene continue from the exact point where the music in the first scene left off when transitioning from one scene to another.

To achieve this, I save the audio offset of the first scene’s music when transitioning to the second scene, and then set the offset of the second scene’s music to that saved value upon entering the second scene.

However, no matter what I do, it doesn’t work. Even though I get the offset of the music in the first scene completely accurately, whenever I try to change the second scene’s music based on this, the music in the second scene always restarts from the beginning (meaning its offset becomes 0). In fact, even if I manually enter plain numbers into the offset change action, the music always rewinds to the start, so the offset is set to zero again.

What could be causing this and how can I solve it? I would really appreciate it if you could help me.

I can’t reproduce the issue, but also why would you not just set up your scene to not stop music/sounds?

Its in the scene properties for the scene, talked about in the ‘keep playing music and sounds between scenes’ section on the wiki. Audio - GDevelop documentation

I actually don’t mean just playing a single track across scenes. I have two versions of the same music for two distinct scenes—they share the same note progression but use different instruments. When transitioning between scenes, I want it to feel as though the music continues seamlessly, just shifting its instruments along the way.

I’ve been working on this since yesterday. After some research, I learned that the music channel structure isn’t great for quick transitions or offset tweaks. Using the audio channel resolved the problem, despite a minor impact on optimization.