How to take a screenshot of the entire scene in actual size.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By StarFox

Sup.

I wanna make prototype of my game level with a tilemap. It’s just a black box with collision on it. After that i wanna draw on top of it. So i have to take actual size of my scene. How can i get it? And can i?

Hi, I have same problem. I want to take screenshot of whole level.
Do you have any solutuon ?
Thanks a lot :slight_smile:

smoula | 2021-05-28 00:05

Any progress here?

Barquero_Team | 2022-10-13 18:14

:bust_in_silhouette: Reply From: Lopy

The size you are looking for should be your default window size, found in your project settings under Display/Window/Size.

Ahh… Sorry it’s my fall.

I mean i have a whole prototype of level that bigger than my screen res.
For example my screen size is 1920x1080 but piece of level that out of screen.

https://ibb.co/cczV5xb - image may help

StarFox | 2020-12-24 23:17

do you got the solution ? @StarFox
same as in my case, my laptop screen res is 1336x768
and i’d like to take a screenshot of 720x1280 (portrait) (for mobile games)
using normal method the result is; it’s cropped into 720x756
it didn’t take the whole 720x1280 like i wish

the normal method i’m referring to is this :

var img = get_viewport().get_texture().get_data()
img.flip_y()
img.save_png("user://screenshot.png")

ruruarchy | 2022-04-14 06:56