0 votes

Is this possible? I'm interested in seeing if you could add a backdrop to the all black border around the viewport during runtime.

asked Aug 13, 2017 in Engine by 9BitStrider (169 points)

Not quiet clear for me what is your goal, but maybe a screen-space shader would do the job.

He is talking about the black borders that show if you set your aspect ratio to be fixed, because then if the screen/window size doesn't match, Godot creates black borders that can't be drawn into (and I don't know how tbh, maybe there is a hack I don't know of :p).

This issue talks about the reverse in order to avoid borders: https://github.com/godotengine/godot/issues/4492

Someone else tried to adress black margins too, but it wasn't accepted. There is a discussion though https://github.com/godotengine/godot/pull/4134

I was referring to the black void around the game window when the app is full screen. Apologies for not including specifics. But yes, I was interested to see if I could place a border around the game window. Seems like this may not be the case for now, though. Thanks for the information.

1 Answer

0 votes

Hi there,
I've played this game made with Godot 2 and it is responsive.

https://cowthing.itch.io/mushroom-towers

So it must be possible to catch the event of resize_screen (pick to right one ^^) and replace the elements in there, or use containers ?

In the game above there is event the particles moving on the screen, in fact all the graphics fill the window. Play with it in windowed mode and resize it!

answered Aug 30, 2019 by jhice (14 points)
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 How to use this Q&A? before posting your first questions.