I’ve noticed a glitch. When I play my game on the computer it works. when i built it or publish it to the web, it still works, but specifically when i play it on a phone (iphone) on a web link, there is this overlapping music problem. the music from previous scenes ignores the command to stop. it will not stop the music, even with extra commands added telling it to stop. you end up with 7 different music tracks playing at once. the game works great on computer. my friends keep asking if my games can be played on a phone. it seems like phones are the way to go to make the game a little more convenient for everyone to play. i wonder if anyone else has encountered this “not stopping” or “overlapping” music problem when playing on a phone?
(I was told this problem could be solved by reinstalling GDevelop but that didn’t work.)
I’m surprised no one else has posted about this problem. i am getting this problem consistently with different games that i am publishing. music from previous scenes starting back up, unprompted and then overlapping. stuff that shouldn’t be possible in the code.
Hey, I haven’t encountered this issue before so I don’t have a direct solution. But if you think this is a bug, then you can report this in the “Bugs reports” section.
Try to create a new project with just a few events that replicate the issue, and share the events along with a playable link so that the issue can be reviewed and hopefully resolved.
Thank you for your reply. I’ve been testing things and playing around with this for a while. I have an iPhone SE, an iPhone 8, AND an iPhone SE 2. The “overlapping music problem” doesn’t happen on the iPhone SE 2.
So basically it works if you have a “new” or “newer” device. I’m a big fan of iPhone 8, but i’m surpassed even iPhone SE has a problem.
also someone in an older post suggested using global variables to fix the problem.
more specifically what is happening for me is that when I start a new scene (only on the web published version) the music from a previous scene will start playing from the beginning. so there are at least 2 tracks playing at once. and it can’t be stopped. a stop music command will stop the music from the current scene, but the music from previous scenes will still play. I wasn’t even aware of this. I’ve just been testing it a lot.
I could use a global variable that is coordinated with each scene, so the music only plays if the variable is true for that scene. it would be an extra way to say “I’m not on that scene, don’t play that music”.
I think a lot of people problem have older devices they might want to play on. but it’s nice to know that it works for new devices and my friends haven’t had a problem.