12-04-2008, 01:00 PM
(This post was last modified: 06-09-2017, 04:11 AM by DerVVulfman.)
A little Modification for Screenshot system
by MauMau
Dec 4 2008
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)
Reply if you have any doubt!
MauMau
REQUIRED FILE:
screenshot.rar (Size: 48.46 KB / Downloads: 4)
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.
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:
screenshot.rar (Size: 48.46 KB / Downloads: 4)