I have made a platformer game and of course there’s music in the background, so I used music channels to play music files. Here is my current problem, I would like to switch the music when the “Player” passes a x value. So here’s the thing I put up the condition that if the player’s x value is greater than x => stop the music channel 1. And the second condition is the same but => play the music channel 2. The problem that occurs is that the sound won’t play and I know there’s no problem with the sound file and there’s nothing wrong with the condition since the music stops. Thanks in advance!
A few suggestions…
Make sure you’re using “Trigger Once” conditions on the play and stop events.
If that doesn’t work…
Try changing the channels… instead of 1 and 2, try (for example) 1 and 4.
If that doesn’t work…
Instead of using Play music, try using the Play sound action for your music files. I remember reading somewhere a few months ago that the “Play music” was a bit buggy but “Play sound” was stable. (I don’t know how true that is but since then I always use “Play Sound” if I have multiple music tracks in a scene.)