How do I take screenshot of entire layout?

Get help using Construct 2

Post » Mon Mar 24, 2014 6:25 am

Hi,

I wish to take a screenshot of entire layout in original resolution.

Say i have a layout of 2000*1000 px and my screen resolution of 1280*720px.
I need a screenshot/arrangment of objects in layout at 2000*1000.
Is this possible?

Thank you.
B
7
S
1
G
1
Posts: 28
Reputation: 741

Post » Mon Mar 24, 2014 7:03 am

Hello,

I am unsure if this would take the entire layout's as a screenshot (at least that is what I understood from the documentation).

But there is a System event called Canvas Screenshot, you can use it to capture the screenshot (you specify whether it is JPEG or PNG) and then use afterwards a subevent "On Canvas Screenshot Taken" and display it into a sprite. Here is a below screenshot of my actions setup:

Image
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Mon Mar 24, 2014 3:56 pm

Hmm Unfortunately it saves the image in window size.
Thanks for trying though.
B
7
S
1
G
1
Posts: 28
Reputation: 741

Post » Mon Mar 24, 2014 6:08 pm

Oh, I see. I am sorry I wasn't much help.
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Tue Mar 25, 2014 3:53 pm

No problem. At least i was able know about Canvas Screenshot.
B
7
S
1
G
1
Posts: 28
Reputation: 741

Post » Tue Apr 08, 2014 1:38 pm

It is something indeed what I once requested as feature but I guess Ashley is not interested to make it for purposes like to improve level designing.

hm you could try make a camera sprite with camera behavior which with arrow keys could move horizontally and vertically in length according the resolution of the window size to screenshot each step and then put the screenshots together in some graphic software like gimp.
B
47
S
10
G
5
Posts: 232
Reputation: 7,571

Post » Tue Apr 08, 2014 1:51 pm

I'd like to be able to print out an entire event sheet, now that would be fantastic.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Sun Oct 04, 2015 2:26 pm

Bumping this because I was about to make a post on the same topic.

I have an interactive form-fillable character sheet and it goes on past the window but I want the player to be able to take a screenshot of the entire thing.

Anything changed since this post was made?
B
20
S
5
Posts: 108
Reputation: 1,473

Post » Sun Oct 04, 2015 4:32 pm

Have you tried "Set layout scale" , wait(0), then snapping a screenshot, then putting the layout scale back?

There would be a flash of the whole layout on screen while it took the snapshot, but only for a 60th of a second.

(my Mineshaft game lets you zoom out with pinch or mousewheel, level 5 is 2000x2000 and you can zoom out to see the whole layout.)
Last edited by Paradox on Sun Oct 04, 2015 4:41 pm, edited 1 time in total.
B
239
S
62
G
33
Posts: 903
Reputation: 40,562

Post » Sun Oct 04, 2015 4:38 pm

set layout size to 2000*1000 scroll layout to 0,0 wait "dt or what value u want" CanvasSnapshot wait "dt or what value u want" set layout size to 1280*720 scroll to 0,0

if your wait time is to small when the layout resizes you might capture the wrong size ...

saving a snapshot tutorial
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 52 guests