Save-Point
A little Modification for Screenshot system - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+------ Forum: Enhancement/Modification Scripts (https://www.save-point.org/forum-98.html)
+------ Thread: A little Modification for Screenshot system (/thread-6483.html)



A little Modification for Screenshot system - Maumau - 12-04-2008

A little Modification for Screenshot system
by MauMau
Dec 4 2008

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


This is a little modification i made for my program, if you don't have a modification like that, your pictures will always be replaced. I didn't created all the script, i just modified a few parts.

The code isn't so good, any ideas for improvement?

If you never used this system:
- You will need a DLL(i will post in an attachment);
- You will need the script(the script in this topic);
- You will need to put on every scene in def update: Screen::shot if Input.trigger?(Input::F5)
I am using F5 for example, you can change for any key if you know how

by default the picture will have the name Screenshot_# and will be placed in the folder Screenshots, it will be 640x480 in a .png(change if you have another resolution)!

An idea for advanced users is put this on main script: Dir.mkdir('Screenshots') unless File.exist?('Screenshots')
If the player delete the folder the program will replace(If you don't want to make the folder this is good too)

The script is here...


Reply if you have any doubt!

MauMau

REQUIRED FILE:

.rar   screenshot.rar (Size: 48.46 KB / Downloads: 4)