+2 votes

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?

Godot version Godot v3.2.3-stable win64
in Engine by (39 points)

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

Any progress here?

1 Answer

0 votes

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

by (2,684 points)

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

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")
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.