Legacy GM Fullscreen toggle isnt persistent

J

JopRillos2001

Guest
I made an object which contains a step event with the following code:


if(keyboard_check_pressed(ord("F"))) {
if window_get_fullscreen()
{
window_set_fullscreen(false);
}
else
{
window_set_fullscreen(true);
}
}

Its supposed to toggle fullscreen. This object is located in the first room, and it is persistent.
When I run the game, and click 'F', fullscreen gets toggled, but when I go into another room, the fullscreen toggle doesnt work anymore. What could cause this to happen?
 
J

JopRillos2001

Guest
When I go to another room, it works, but when I return to the main menu, it doesnt work anymore
 
J

JopRillos2001

Guest
Ah, I used a instance deactivate all function, but when you press esc u go to the main menu, without activating. Now it works, thanks for the help
 
Top