I'm currently making a horror game and for one scare in particular, I want to minimize the game window so that the player will click on it to bring it back up, only to get jumpscared. Though I haven't found a way to do that yet. I thought "window.minimize()" would work but according to the console, that's not a function so I'm kinda at a lost here 😅
MZ How to minimize game window?
Learning JavascriptYea:
Try this instead?
window is just the global scope, not a reference to the NWJS app window.Try this instead?
JavaScript:
if (Utils.isNwjs()) nw.Window.get().minimize();
Ack, I was close! One thing I tried was
JavaScript:
nw.Window.minimize();
Original thread: https://forums.rpgmakerweb.com/threads/how-to-minimize-game-window.178322/