Has anyone else's projects or even PC's went black and couldn't close or exist the project or GameMaker Studio 2 if went into fullscreen while the game was running and the only other option was to resart the PC? Ctrl + Alt + Delete doesn't even work.
I had two instances where the player could switch from fullscreen to windowed during gameplay. But after recent updates, it just blacks out my PC and the only other option to fix it is to restart the PC. When this happened, all keyboard keys became useless. I'm reluctant to proceed further testing of it's behavior in case it actually crashes my PC or causes memory loss from all of the hard resets.
Since the screen goes black and I can't access GameMaker Studio 2 application, I can't access the Output log to file a bug report. It usually works the first time fullscreen is switched, but after a second or third (sometimes even on the first time), that's when it goes black. This had worked before no matter how many times I would switch back and forth to fullscreen and windowed.
These are the two places I have the fullscreen switch code at:
o_game (Main persistent Object) Step Event
GML:
if keyboard_check_pressed(vk_escape) {
if window_get_fullscreen() {
window_set_fullscreen(false);
} else if !window_get_fullscreen() {
window_set_fullscreen(true);
}
}
In the o_pause_menu_ui Object Step Event using a switch statement.
GML:
case pause_menu_options.fullscreen:
audio_play_sound(Start_SFX, 10, false);
if window_get_fullscreen() {
window_set_fullscreen(false);
} else if !window_get_fullscreen() {
window_set_fullscreen(true);
}
break;