Topic was automatically imported from the old Question2Answer platform.
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
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.
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")