How to take a snapshot in-game

Started by dbuske, Tue 04/01/2011 14:19:56

Previous topic - Next topic

dbuske

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?
What if your blessings come through raindrops
What if your healing comes through tears...

Gilbert

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.

Khris

It should be F12.

You can change the key to another one, all pressing F12 does is call the SaveScreenShot command.

The screenshot ends up in "My Documents/My Saved Games/Game_Name/" (or the game dir with older games).

dbuske

What if your blessings come through raindrops
What if your healing comes through tears...

dbuske

Afraid that F12 or F11 are not working.  I cannot find a sceenshot bmp file anywhere in the game directory or in documents.
What if your blessings come through raindrops
What if your healing comes through tears...

tzachs

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:
Code: ags

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

SMF spam blocked by CleanTalk