Is it possible to down-scale the screen size and the tilemap size with it?

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

Objective:
The game is a a pinball-like one (vertical).

Problem:
I made my tileset 64x64 and have a 1080p screen.
The game fits fine in fullscreen mode, but is cut-off in windowed mode.

Question:
Is there a way to scale the screen size down including the tilemap?

Bad things happen if I change the display settings or tilemap properties manually.

Node2D > Scale 0.5 perhaps?

Something like:
get_node(“Walls/TileMap”).scale(.5, .5)

Any have a code sample?

GodotUser | 2019-07-24 02:40

:bust_in_silhouette: Reply From: Calinou

To make the viewport scale up/down automatically as the resolution changes, configure the project to use the 2d or viewport stretch mode in the Project Settings. You will also probably want to define the stretch aspect to keep or expand. See Multiple resolutions in the documentation for more information.

:bust_in_silhouette: Reply From: 1shevelov

Yes, you can do just like that

$TileMap.apply_scale(Vector2(.5, .5))