Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | siska |
Hi,
I’m porting a hidden object game from Starling to Godot. In the game, I use screenshots quite a bit for transitions between levels.
I’m now looking at the Screen Capture tutorial for Godot 3.0, and I was wondering why this code :
var img = get_viewport().get_texture().get_data()
img.flip_y()
produces a screenshot that’s smaller than the game screen ? Also, why is the image flipped by default ?
https://postimg.cc/d7rLxfD9
I believe it’s based on the size of the monitor. If you maximize the screen it gives a different result. Just what I found.
ugly_cat | 2019-02-07 01:57