Yesterday I programmed my game so that when the char walks into an "exit tile", the FlxG.switchState is called and the map is redrawn, the problem with this approach is that the music also resets. Maybe it's too much to ask if there's a way for the music to continue playing through the different states, so I tried by recalling the create function and failed, tried to rewrite the variables (map, chars, items, etc.) and nothing.
Any suggestions of how to redraw everything without the need of "switching states" so that the music can go indefinitely until the "zone" changes (kinda like any RPG where you get inside the house and the music is still playing, but when getting out of the town, the music switches)?
Thank you!