• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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