SOLVED: Print game screen

Started by johanvepa, Sat 03/10/2015 17:04:32

Previous topic - Next topic

johanvepa

Is there a function in AGS to print the current game screen?
I'm toying with the idea of typing in some data in a parser, process the data and pop them into a certain visual presentation, whichcan then be printed. I think I can manage the rest, but before I spend the time on it I need to know if it's feasible to print the end product from the game screen.
If so, perhaps it is even possible to print directly into a pdf file? (Otherwise I'll simply use pdfcreator, just wondering if it might be integrated in AGS already)

Gilbert

If you are using the default template to create your game, by default, pressing F12 in-game to save a screenshot as a PCX image. If you're say, using the empty template that may not have this function scripted in, just check the SaveScreenShot() to see how to use it.

To print a game screen you may just print the captured image file. If you really have to use PDF just use whatever programme that can create PDFs and import the image file, though I don't understand why any game would really need to have a function to output its screen as a PDF file(unless the game screen is to be combined with other stuff such as description passages of text, etc.).

johanvepa

Thanks for your help, I'll take a look at what F12 does in the template and the SaveScreenShot() feature.

It's not for a game, though. I'm trying to make a simple data input interface that allows users to fill in an application form and print it onto a piece of paper. I could probably use any number of other platforms for this, but I'd like to try it out in AGS.


SMF spam blocked by CleanTalk