Game Development Community

How can i take a screenshot?

by Jesse Hall · in Torque Game Builder · 04/19/2005 (9:18 am) · 3 replies

Basicly what the subject says...

im just wondering how to take screenshots in T2D. I've hit prnt scrn a few times and searched the directories but can seem to find anything.

also cant find it in the docs but perhaps im missing it.

regards

Jesse

#1
04/19/2005 (9:26 am)
Here's my screenshot code, which I bound to a key.

function grabScreenShot()
{
	$screenShotNumber++;
	%shotName = "./shot-" @ $screenShotNumber @ ".png";
	screenShot( %shotName, "PNG" );
	echo( %shotName SPC "saved." );
}
#2
04/19/2005 (9:48 am)
Common/client/screenshot.cs binds defines code for taking screenshots and binds CTRL+P to take one.
#3
04/19/2005 (3:26 pm)
Thanks all!