Time to Stretch! How to keep a game centered so if the screen width increases it shows more background?

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

I point to mobile/tablet games.
I know how to center my game but when the ratio is different, it fills the border with color in order to match my game ratio.
I want the height of the game always to match the height of the device, but the width showing more or less of the image background instead of the color fill.
I remember Unity can do it using properties, but I played a lot with Godot’s with no success.

:bust_in_silhouette: Reply From: divegame

I guess what you want can be defined through Project Settings->Display->stretch aspect and choose keep height

Thaks a lot!
I can’t believe I didn’t catch on this…sorry if I bothered you!

Danicano | 2017-04-22 15:00