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?
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?