lythande Posted July 5, 2018 Share Posted July 5, 2018 Hello, I have a small question. Is it possible to continue the same music by changing GameState? If yes, how can I do? Thanks so much ! Link to comment Share on other sites More sharing options...
GiniWren Posted July 7, 2018 Share Posted July 7, 2018 If you define the variable holding your music outside of your state (or even outside of your game/as a global if needed), it continues to play through state transitions. Sorry, disregard my comment and see samme's below. See this codepen for example: https://codepen.io/giniwren/pen/mKNmYd Link to comment Share on other sites More sharing options...
samme Posted July 7, 2018 Share Posted July 7, 2018 I think sounds will just keep playing when changing states. They're not stopped or removed. Link to comment Share on other sites More sharing options...
Recommended Posts