Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by jcl. 04/24/26 17:48
ZorroGPT
by TipmyPip. 04/23/26 14:23
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,379 guests, and 15 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Screenshots #82298
07/19/06 22:36
07/19/06 22:36
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
I have 2 questions:

1. How can I create a screenshot from ingame?
2. How can I display a specific image with specific width and height?


The best games are the games you create yourself.
Re: Screenshots [Re: NL_3DGS_n00b] #82299
07/19/06 23:04
07/19/06 23:04
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
As to question #1, look up file_for_screen in the manual. I don't know the answer to question #2, however.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Screenshots [Re: ulillillia] #82300
07/19/06 23:28
07/19/06 23:28
Joined: May 2005
Posts: 222
T
tek Offline
Member
tek  Offline
Member
T

Joined: May 2005
Posts: 222
for number 1 while playing the game press f6.

Re: Screenshots [Re: NL_3DGS_n00b] #82301
07/20/06 06:30
07/20/06 06:30

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Q2:

create an entity for the image: pic=ent_create...()
scale it to your needed size: pic.scale_x=320/1024 (if you want to shrink 1024pix to 320 pix) (same with scale_y)

you need to know the size of the original image! (sys_metrics(0)?)

mercuryus

Re: Screenshots [Re: ] #82302
07/20/06 13:47
07/20/06 13:47
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
@Mercuryus about #2,

Can you give me a working code? I dont understand how to doe it...
It isnt possible to create a normal bmap image on a panel with specific size?


The best games are the games you create yourself.
Re: Screenshots [Re: NL_3DGS_n00b] #82303
07/20/06 15:20
07/20/06 15:20
Joined: Jul 2006
Posts: 16
Italia, Bologna
D
Daniela Offline
Newbie
Daniela  Offline
Newbie
D

Joined: Jul 2006
Posts: 16
Italia, Bologna
when it's on a panel, you just have to do this:

panel x
{ bmap = screenshot;
pos_x = 10;
pos_y = 10;
size_x = 320;
size_y = 240;
layer = 1;
flags = visible;
}

Re: Screenshots [Re: NL_3DGS_n00b] #82304
07/20/06 15:54
07/20/06 15:54

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hi!

try this:
(the bitmap has the size 1600x400, empty.wmb is an empty level)
You can change the resolution in video_switch and the image stretches to the proper size...

Code:

bmap bmp_bluepan = <blue_panel.bmp>;

// the panel with the image
panel pan_blue {
layer=1;
pos_x=0;
pos_y=0;
bmap=bmp_bluepan;
}

function main {
video_switch(5,32,2); // set resolution, ...
level_load("empty.wmb"); // load level
wait(3);
bg_color.red=1; // set background color
bg_color.green=1;
bg_color.blue=1;

pan_blue.visible=on; // view panel
pan_blue.scale_x=screen_size.x/1600; // and scale to resolution
pan_blue.scale_y=screen_size.y/1400;

while(1){
wait(1);
}
}



Re: Screenshots [Re: ] #82305
07/20/06 19:44
07/20/06 19:44
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
I will try to resize panels tonight, but I have a problem with creating screenshots, I am using freedll/bigdll and this is the script I use:

Code:
string screenshotfilename = "scrn1.bmp";
function screenshot{
DllScreenshotSetData(0,0,screen_size.x,screen_size.y);
DllScreenshot(screenshotfilename,D3DX_BMP);
wait(1);
if(DllScreenshot(screenshotfilename,D3DX_BMP) == -1){
exit;
}
}
on_x = screenshot;



But I dont get any error, the game just exits because the IF statement returns -1. My question is, WHY is the IF statement returning -1?

The DLL is defined correctly, cause the title changing works fine etc...


The best games are the games you create yourself.
Re: Screenshots [Re: NL_3DGS_n00b] #82306
07/20/06 21:50
07/20/06 21:50

A
Anonymous
Unregistered
Anonymous
Unregistered
A



can't say - ask TripleX... (by pm?)

mercuryus

Re: Screenshots [Re: ] #82307
07/23/06 19:12
07/23/06 19:12
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
k, wait, your using a dll...... but your in the starting with gamestudio forum??????


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1