Hi all,
I'm trying to figure out how to make the game quit with Javascript.
I've seen this done in another Ct.js game, but I can't find anything in the documentation.
Thanks
window.close(), put it in a Click event of any template.
window.close()
Thanks! I couldn't get your suggestion to work but it helped me find something that did
I ended up using Neutralino.app.exit() instead
Neutralino.app.exit()
metalharbor yes, this is a method for desktop builds. The window.close method is for browser builds.
window.close
Thanks, I will keep that in mind for web publishing