Music cutting of suddenly before the loop

Hi guys,

I have the below code for the music inside my game (There are 2 variables cause I want the music to randomly change when you switch to this scene)

Now this is my first time adding music and I noticed that the music ends suddenly, like 10-20 seconds before the track ends. Then It loops from the beginning as I want it to.

Any idea why?

Does the variable Music change at all? If not, change your events to the following and see if the problem persists:




If the issue is still there, then check this link to the differences between playing music and sound. It may help.

BTW, you do not need a “Trigger once” with a “At the beginning of the scene”. The beginning of the scene only occurs once. A trigger once is redundant.