yeh, use 'video_switch'/'video_set' but don't put it in a while loop like Ed_the_Sock suggested, because that is crazy smile.

You can use the 'on_enter' event to change it...
Code:
var fullscreen = FALSE;

function SwitchScreen()
{
if(key_alt == 1) 
{
if(fullscreen == TRUE)
{
video_set(0,0,0,2);
fullscreen = FALSE;
}
else
{
video_set(0,0,0,1);
fullscreen = TRUE;
}
}
}

function main()
{
on_enter = SwitchScreen;
}


I haven't tested it, but it looks ok.

Last edited by DJBMASTER; 03/06/10 10:06.