I have a problem with background music on my app
I have 4 scene
main menu, select game, story, gameplay
I set the same background music for main menu, select game and story with this code:
bg\_sound = audio.loadSound("sound/music.mp3") audio.play(bg\_sound,{ channel=1, loops=-1 })
I write this code in main_menu
no local, no dispose. so that bg_sound still playing till the story scene.
the problem is when I pause the gameplay, I give an option to back to select game
how do I play bg_sound again on the select_game scene??
if I load the bg_sound in select game and story scene the sound will play from the start every time I go to that scene
sorry for my bad English, I hope you guys understand and can help