Ninjadoodle Posted July 22, 2018 Share Posted July 22, 2018 Hi @enpu I'm following an example you've given me in a previous post, but I can't seem to get them music to stop looping ... game.audio.playMusic('musicStingerHighTide'); game.audio.music.loop = false; Any on what the issue could be? Thanks you in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted July 22, 2018 Share Posted July 22, 2018 Ah sorry, bad example. I just added second parameter to playMusic function, which you can use to play non-looped music. game.audio.playMusic('music.m4a', true); // Play non-looped music // Exactly same as var music = new game.Music('music.m4a'); music.loop = false; music.play(); Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 22, 2018 Author Share Posted July 22, 2018 @enpu - Awesome, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.