How can I create a Quit/close button? For example, In the main menu of my game I have QUIT button. If I clicked the QUIT button it will close the game.
Add Browser and Mouse Objects to layout.
+ On Object Clicked (Left, Clicked, QuitButtonObject)
procrastinator
does this work on mobile devices if i export to cocoonJS ?
Develop games in your browser. Powerful, performant & highly capable.
Don't have experience with that sorry. Hopefully someone else with experience can help.
philx Just tested it with my current project and it does indeed work. On Android 4.1.2, at least.
It should work on CocoonJS (did you try it?) and node-webkit. On other platforms like HTML5 it doesn't always work, because web pages don't always have permission to close the browser window.
Where is this "browser" located?
I FIGURED IT OUT! Thanks for the reply procrastinator :D
for me it goes quite slow exiting the page on mobile devices, you touch exit takes like 5 seconds to close. on laptop goes like a flash though
c4r70, nps. Hope it works ok. I've even learned about issues using this from the replies here :)