Is it possible to make double orientation game with Godot?

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

Is it possible to make a game for mobile that works both in portrait and landscape mode? if it’s possible, how to notify the game that the orientation is changed? how to set the viewport for both portrait and landscape mode from code?

What kind of game are you making. All mobile games that I have seen are only in one orientation.

SIsilicon | 2018-05-24 14:24

so I found one of Godot games that work both in portrait and landscape mode in here: The CAT & GHOSTS: PUZZLE one.

I’m making a puzzle game, similar to match-3 but I want to make it possible in double orientation like The CAT & GHOSTS: PUZZLE.

asetyowatir | 2018-05-25 05:05

Did you find anything about this?

dpensky | 2020-08-11 15:09

:bust_in_silhouette: Reply From: Socrates

I’ve never tried this, or developed anything for mobile, but I think OS.screen_orientation might be what you need.

These are the possible settings: OS — Godot Engine (3.0) documentation in English

Socrates | 2018-05-24 16:36