Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: dbuske on Tue 04/01/2011 14:19:56

Title: How to take a snapshot in-game
Post by: dbuske on Tue 04/01/2011 14:19:56
The printscreen function of my Dell Inspiron notebook apparently doesn't work.
I have searchedeverything in AGS and the forums and the AGS website and can't find info.
How do I take a snapshot inside the running game?
Title: Re: How to take a snapshot in-game
Post by: Gilbert on Tue 04/01/2011 14:29:57
If you're using the default game template you can use F11 or F12 (I couldn't remember which one, just check it in the global script) to take a screenshot.
Title: Re: How to take a snapshot in-game
Post by: Khris on Tue 04/01/2011 15:19:41
It should be F12.

You can change the key to another one, all pressing F12 does is call the SaveScreenShot (http://www.adventuregamestudio.co.uk/manual/SaveScreenShot.htm) command.

The screenshot ends up in "My Documents/My Saved Games/Game_Name/" (or the game dir with older games).
Title: Re: How to take a snapshot in-game
Post by: dbuske on Tue 04/01/2011 17:02:07
Thanks guys
Title: Re: How to take a snapshot in-game
Post by: dbuske on Sun 16/01/2011 20:48:20
Afraid that F12 or F11 are not working.  I cannot find a sceenshot bmp file anywhere in the game directory or in documents.
Title: Re: How to take a snapshot in-game
Post by: tzachs on Sun 16/01/2011 22:32:16
Open your GlobalScript.asc (in your scripts).
Search up the word "SaveScreenshot", is it there?

If not, then enter inside the on_key_press function:

function on_key_press(eKeyCode keycode)
{
    .....
    .....
    if (keycode == eKeyF12) SaveScreenShot("scrnshot.pcx");  // F12
    .....
    .....
}