Best way to make window border

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By grol
:warning: Old Version Published before Godot 3 was released.

Hi,

I am planing to make a window border around my viewport. Like you know it from rpg’s.
I like to have something like a wooden frame around the viewport and maybe some icons to show health and so on.

How would you realize that? With tiles? Image texture with hole in the middle? I think the most difficult thing is to make it fit on different devices with different resolutions…

:bust_in_silhouette: Reply From: KRL

Image texture with hole in the middle and covering entire screen with scaling algorithm should do the job.

OK, i will try that. Is there a way to resize a sprite but keep the texture in the native size but duplicate the texture or repeat it? I mean like tiles. Or like in HTML/CSS repeat-x or so…

grol | 2016-03-20 09:43

Don’t know if there is built-in solution for that, but everything is possible using godot.

KRL | 2016-03-20 22:16

I think it can be done with the 2d poligon. It would be great to have an option for sprites that it can be scaled but the texture keeps unscaled and repeats it self like it is in the polygon node…

grol | 2016-03-21 09:59