3 replies [Last post]
msdos622wasfun
User offline. Last seen 17 weeks 2 days ago. Offline
Joined: 07/25/2016
Posts:

Hi everyone,

I think I've discovered problems with music playback. In the game I'm currently working on, I have a more laid-back piece of music on my main menu front-end that I wrote myself (still in very rough shape), and then for the game itself I have more aggressive music. But what I'm noticing is that the first level that is shown to the user does not play the game music; instead, it keeps playing the main menu music. Finally, when the next level loads, the game music does in fact start to play, but it sounds corrupted and even "doubled up" -- in other words, it's as if a second copy of the music is being played about .25 seconds after the first (like a delay or echo). Weird, I know, but it's happening.

I can reproduce this issue with just a simple sample game. If you want to try it yourself, just make a main menu front-end with a piece of text that says something like "Click Here to Start," and assign it so that it starts a new game. Turn off Fire to Progress, and set the duration of the front-end to be 0. Assign it a piece of music.

Then make a simple level with just a player and an enemy, and copy it once so there's two levels. Assign a different piece of music to these two levels.

When I make this simple project, the problem surfaces; the main menu music plays on the first level, and when the game music starts on the second level, it sounds bad.

Any help would be appreciated.

msdos622wasfun
User offline. Last seen 17 weeks 2 days ago. Offline
Joined: 07/25/2016
Posts:
Hmm, interesting. Was just

Hmm, interesting. Was just playing around again, and there's more unusual stuff going on. In that sample test game that I described above, I removed the assignment of the text item to start a new game when clicked on, but I set Fire to Progress to true (keeping the duration at 0). But when I tested the game, clicking did nothing -- it wouldn't go to the first level at all.

msdos622wasfun
User offline. Last seen 17 weeks 2 days ago. Offline
Joined: 07/25/2016
Posts:
Wait, wait! My mistake. The

Wait, wait! My mistake. The original problem I described is still true, but that shorter 2nd post above was a misunderstanding. I was trying to click the mouse to start the game instead of hitting the key assigned to "fire."

And guess what, in that case, the problem did not appear. So I think I have it narrowed down: this music playback issue is happening when you force the user to click on a text item to start a new game.

msdos622wasfun
User offline. Last seen 17 weeks 2 days ago. Offline
Joined: 07/25/2016
Posts:
Just checked the same thing

Just checked the same thing with a sprite, and clicking on a sprite to start a game does the same thing.