Movin the viewport in the upper left corner.

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


How to do that in the stead of the lower right corner?

@Syl could you describe a little more what you want to achieve, right now I don’t quite get it.

Bartosz | 2018-03-31 15:29

Well, I was just tryin to make my previous code fonctional, as the map was rushin toward the upper right corner. But your new code solved it.
Was tryin to set the viewport on that right corner, to inverse the vectors. Is that possible to move our viewport/window on others coordinates?

Syl | 2018-03-31 15:59

You are free to manipulate sprite that draws viewport so making it mirror or upside down of actual scene is quite easy e.g mirror sprite_displaying_vieport.scale.x = -1
moving is also as simple e.g. sprite_displaying_vieport.position = new_position
but if you want to change whole coordinate system I’m not sure if it is easily doable in godot.

Bartosz | 2018-03-31 17:14

My thanks, master Bartosz!

Syl | 2018-03-31 17:30