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.