We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I am using p5 and p5.sound to develop my first game. There is just one problem. While I minimalize the game at android game is paused but music is keep playing. How to pause the music when I leave game?
in Setup I have: music.loop();
music.pause(); ?
music.pause();
I know, but how can I detect when user minimalize the game?
I don't know
I found a solution: https://cordova.apache.org/docs/en/dev/cordova/events/events.html#pause
Answers
music.pause();
?I know, but how can I detect when user minimalize the game?
I don't know
I found a solution: https://cordova.apache.org/docs/en/dev/cordova/events/events.html#pause