music repeating?

So I got a problem again, So I wanted to put a music on my main menu and the store all one music but when I open the store scene then returned to the main menu it restarted the music . how can I avoid restarting and just continue.

Answers

  • UtopianGamesUtopianGames Member Posts: 5,692

    @yasoofx Good question…had a quick play see file attached.

    I've not tested on device but this works in the creator.

    I made a game.boolean called PlayMusic and set it to true then when we change scenes i set it to false.

    I made a rule that says when game.PlayMusic is true play music and loop.

    Hope this helps.

    Darren.

Sign In or Register to comment.