hi, basically my game is almost finished and its for android, i exported it with cacoonjs. the game is supposed to have no pause, but when the player presses the exit button on android(the one with an arrow) it asks if i want to leave the game (which is normal) but i want to remove that option from the game layout cause it pauses it i just want exit option to work on the menu, any tips?
Develop games in your browser. Powerful, performant & highly capable.
There's a plugin that allows you to use the Android back buttonin CJS, called CocoonJS Android Back Button.
Then, for your purpose, I think it'd be best to have an event in your game screen that accepts the input but does nothing with it. Then in your main menu, you could create your own popup message that exits the game with the Browser -> close action.