1 decade ago by TylerAppmobi
Hey, I just found this out and thought it may be useful to anyone using appMobi to take their Impact game mobile.
If you want to have a soundtrack to your game, you can use the code below to be triggered when you want the music to start.
You could also give the player the option of pausing the music by placing a volume off button in the pause menu and have that button trigger this code:
We added this function to a couple of the games we've made and didn't see any change in the performance.
You can read more about how this code works in our API documentation found here:
http://appmobi.com/documentation/player.html
I hope this helps someone else :)
Stay classy developers!
If you want to have a soundtrack to your game, you can use the code below to be triggered when you want the music to start.
AppMobi.player.startAudio(relativeURL);
You could also give the player the option of pausing the music by placing a volume off button in the pause menu and have that button trigger this code:
AppMobi.player.toggleAudio();
We added this function to a couple of the games we've made and didn't see any change in the performance.
You can read more about how this code works in our API documentation found here:
http://appmobi.com/documentation/player.html
I hope this helps someone else :)
Stay classy developers!