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.

DarkBASIC Professional Discussion / Screen Capture the Game

Author
Message
Jachan19
15
Years of Service
User Offline
Joined: 1st May 2011
Location:
Posted: 21st Jan 2013 06:42 Edited at: 21st Jan 2013 07:58
Before you jump into many wrong conditions (believe me, I already tried to use the search to find my answer but many topics narrow to the "Don't Need" lists you are about to read in next paragraph), I have to tell you what I really need and what I don't really need... First, I will tell you what I don't need before the needed one.

Don't need:
1) I already knew how to press the key called "Print Screen" but that's not the one I need to use for.
2) I already knew about the "Create Bitmap" command but it only works on the "Draw" things, does not work with Images and Sprites
3) I already knew how to command "Get Image" but when I tried it many times, none of them has been successed because when I read "Get Image", from search-topics, I just learned that it is unable to capture the sprites...
4) I don't have anything else than "Dark Basic Pro" program itself, means no plugins or addons or anything but that. If anybody have a "free edition" plugin(s) or addon(s) to download, I would be happy to get one.

Now, see that I already know them but still, not the one I want to know how to... Now, the "Needed" one is here...
Do you ever play any Final Fantasy game? They make a nice encounter animation before switching to the battle-mode programming... yes? My best guess is that they used to copy the screen what it just "sync" before and then quickly paste that copied image over the world-mode programming... With the copied image over the world-mode programming, everything behind the copied image could be switched into the battle-mode programming while keep the copied image in front as if you are trying to look Santa behind multiple-elves in "Polar Express" movie... After it's done, they make an animation effect of the copied image to be disappeared to allow you see the battle screen to start battle...
Get the picture? No? Then here the list of various FF videos are. Please note that none of them are mine nor me play any of those. Also, sorry if some videos are only 240p but you get the picture anyway, xD


Do anybody know how to write the command (or a function either) in order to capture the game I programmed, be close to like those videos as well as explained my "guess" of Square Enix's programming of encounter-animation?
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 21st Jan 2013 08:41
Well BITMAP 0 has all of what's being held on the screen, so you could transfer the contents of BITMAP 0 to an image, use the image to create a sprite, hide the sprite, then use SIZE SPRITE, ROTATE SPRITE and then PASTE SPRITE to create the whole FF twirling effect.

Like this:




Jachan19
15
Years of Service
User Offline
Joined: 1st May 2011
Location:
Posted: 21st Jan 2013 09:02
Thank you, CumQuaT... but it's pretty little offtopic for my topic. I asked for the "screen capture" programming, not "how to make effects".

I guess I should say something more clear...
Here my example of code is...
Remind: EXAMPLE, not "real" codes... and also I am not writing the whole codes because I didn't start program the world yet, only battle screen.


That is, somewhere, what I want to look for the command / function to capture the world screen and paste image 25 over that updating-world screen, not animating it "yet".
I tried Get Image command for that but it won't grab the sprites or the background neither, just blue screen... So that's where it came in for the "screen capture".
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 21st Jan 2013 09:04
Why not just use GET IMAGE?


Jachan19
15
Years of Service
User Offline
Joined: 1st May 2011
Location:
Posted: 21st Jan 2013 09:09
I guess you didn't read the whole.

I will say this again, third time, because I have to be polite instead getting banned... I did used this "Get Image" in many ways but it only captured the blue screen instead the whole screen I made.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 21st Jan 2013 09:31
Jachan19 - Are you using AntiAlias in any way? just covering the grounds at each step here...

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Jan 2013 09:39
Get Matrix1 Util (33 is the one you need specifically) so you can use the draw to image command.

Press F12 to save a screen shot.


"You're not going crazy. You're going sane in a crazy world!" ~Tick
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 21st Jan 2013 09:46
Jachan19, it's a bit hard to understand what you need due to your English, sorry. I did read the whole post, and am just trying my best to help.


Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Jan 2013 09:55
I had no problem understanding him. Well, at least the part about grabbing a screenshot. He's saying that GET IMAGE isn't grabbing the sprites into the image.

My thought is that he could be grabbing the image before drawing the sprites to the screen. I've never really used get image before so maybe it doesn't pick up sprites?

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 21st Jan 2013 10:26 Edited at: 21st Jan 2013 10:32
Sounds like it. It does pickup sprites.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 21st Jan 2013 15:02 Edited at: 21st Jan 2013 15:15
Quote: "I just learned that it is unable to capture the sprites..."


We can get all sprites into the screen if we paste sprite before getting image



Cheers.

I'm not a grumpy grandpa
Jachan19
15
Years of Service
User Offline
Joined: 1st May 2011
Location:
Posted: 21st Jan 2013 21:24
I thought somebody in my previous topic was mentioned that my grammar is not been focused to mention in any topic, >__>

Ahem... Like I said in my previous topic, grammar is my weakness as well as English is not my native language, so... That's why.

Anyway, to everybody who posts after me, I thank you for your help but I don't need any "key" to press... nor players do have to press the key in order to grab the image for the encounter-picture,

Also, I did ordered it correctly already as I typed in the code-box up here...
First, paste images / sprites around
Sync
Second, "Get Image" the screen

*Trying to do it as Get-Image before Sync*
Oh my god... It works!! But one little problem remained, Mage is incorrect... It didn't pick the sprites as it only got all Box Commands and Text Commands I made so far...
I am so sorry about that, CumQuaT.
Thank you, chafari, for making me notice that it don't have to be after Sync. =D

Now I need to deal the "capture" sprite in the Get-Image...
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 21st Jan 2013 23:47 Edited at: 21st Jan 2013 23:54
I am correct. You need to paste the sprites and other 2D elements before screen grabbing. Do it first thing after the sync command.

The only statement I made was that Get Image picks up sprites. It certainly can this is a fact.

Jachan19
15
Years of Service
User Offline
Joined: 1st May 2011
Location:
Posted: 22nd Jan 2013 00:40 Edited at: 22nd Jan 2013 00:52
Okay, Mage... but to tell you the truth, just like I said after fixed it, the sprites are "already" pasted (Sprite ##, x, y, ##)... wait a minute... *checking the whole list of "Sprite"* Oh, it have "Paste Sprite"... Let me check it to run, sorry! *runs off to test*

[EDITED]
You are so right about this, Mage... I didn't realize it actually have "Paste Sprite" and it actually worked! Thank you so much, Mage!! =D
Now I can make a little nice animation this way!
...even though I wish i could able to do something to be closer like FFVIII's or FFX's or better yet FFXIII's either... =( But still, thank you again!
I guess it's time to close this topic now. I apologize to everybody who already mentioned about that earlier as I didn't realize it earlier.
zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 22nd Jan 2013 06:18 Edited at: 22nd Jan 2013 06:20
I'm glad you solved your screen capture issue. You may want to also look into SET CAMERA TO IMAGE for the performance boost. GET IMAGE can be pretty slow.

I wanted to throw this out there for an idea on the effect transition. It's a bit of a cheesy effect, but you could probably get something pretty fantastic by using a shader.

DBP code:


shader.fx code


Good luck with your project! (I'm an FF6 snob myself. b][/b])

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 22nd Jan 2013 13:30
@Jachan19
I'm glad you recognized it


Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-07 06:23:30
Your offset time is: 2026-07-07 06:23:30