weird music problem?

BlitzMax Forums/BlitzMax Programming/weird music problem?

Yahfree(Posted 2009) [#1]
Hey,

I have a music loop for the main menu of my game and the actual gameplay. The code is basically this:



When I enter the game, the main menu music stops as predicted, and the game music begins. This is correct. However, returning to the main menu from the game, the game music continues playing. And then returning to the game from there, the main menu music keeps playing along with two instances of the game music loop.

This effect keeps repeating aswell. What am I doing wrong?


Yahfree(Posted 2009) [#2]
Fixed it... for anyone interested here's the fixed Pseudo Code: