Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Duck on Thu 08/01/2004 00:53:33

Title: Save/load keys constant throughout the entire game...
Post by: Duck on Thu 08/01/2004 00:53:33
Well, I've skimmed the help, and the knowledge base just won't work on my computer, so I've come here. Is there any way that I can make it so that pressing F5 calls up the save dialog throughout the entire game, without having to put the script into every individual room? I know how to script it, but not how to make it happen in every room. Help?
Title: Re:Save/load keys constant throughout the entire game...
Post by: Inkoddi on Thu 08/01/2004 01:03:39
It already is like that and if not put this in the global script


function on_key_press(int keycode) {
 if (keycode==363) SaveGameDialog();    //f5
}
Title: Re:Save/load keys constant throughout the entire game...
Post by: Duck on Thu 08/01/2004 23:34:23
Oh, really? Heh heh heh... thanks.