Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Take A Picture Of Your Game

Author
Message
the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 26th Dec 2005 01:09
Hi!

Why would anyone need to press that "Print Scr" button and then try searching for their picture inside the system folder? Because now you can take pictures of your game by pressing any key on your keyboard, and your picture shows up right inside the same folder as your executable!!!

Just drop this function inside your game loop and you can be cool too:



Press a button and take a picture! It's that easy!

See you next time with another amazing function.


www.fishbrosentertainment.com
Zedane
20
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Milky Way, Earth
Posted: 26th Dec 2005 02:11
Lol, you realize that if you print screen then you can paste the image into paint.

But otherwise its a cool funtion. . usefull for taking multiple shots.


around here.. normal's just a setting on a hair dryer
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Dec 2005 11:05
if it's in DBP, you can do it faster.
(if you want to know how, search the DBP forums)
new programmer
18
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 1st Jan 2006 20:28
lol. idont think he remembered you can paste it into photoshop or paint shop pro anaversary edition 7(those 2 i use)

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 2nd Jan 2006 10:08
For print screen, you have to quit and paste/save it for every screenshot you want to take.

Anyway, the faster way I meant, was memblocks.

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 2nd Jan 2006 15:42
but i really think dbpro should have the F9 button working. just like in dbc


The Cowboy Game progress 17% (bullets)
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Mar 2006 09:22 Edited at: 24th Mar 2006 09:26
You know that in dbpro you can save an image like this...

Assuming of course that its 640x480 screen resoulution.

Sorry, i didnt look at your code. You already have this implemented.

View my website![href] http://www.freewebs.com/directexecute/index.htm [/href]
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 24th Mar 2006 11:12
You could add a function for capturing a screenie with no 2D. Like a screenshot that sync's before grabbing the screen, so only 3D and sprites are shown, and 2D debug text for example would be removed. You could even watermark your screenshots if you liked by pasting an alpha image before grabbing.

Nice little function, there is nothing worse than compiling, running, grabbing, then pasting - for each and every screenshot.


Van-B

Put away, those fiery biscuits!

Login to post a reply

Server time is: 2024-11-23 07:18:58
Your offset time is: 2024-11-23 07:18:58