+1 vote

Hi! I'am exporting a game to apk and i made it the size of a android in portrait mode, enable the portrait image in the exportation and let the expand 2d enable on the configurations, but when i open the game (also my friends) it remains in the landscape screen. Could anyone help me?

Godot version 3.2.1
in Engine by (30 points)

1 Answer

+1 vote

Hi. I totally understand if it's confusing.
I'm not sure what you mean by "let the expand 2d enable".

Try this:
https://imgur.com/a/eGvLN0W
enter image description here

This works on a template demo project from Godot.

Written Instructions:
Click on "Project" at the top left dropdown menu.
Go to Project Settings.
On the left side, scroll down to Display.
Click on Window.
Under Tablet Driver, switch the width and height.
E.g. if width is 1024 and height is 600,
change width to 600 and height to 1024 so that the game window is a tall vertical portrait rectangle.
Under "Handheld", change Orientation to Portrait.

This should work.

If it doesn't, then, another step you could try is:
Project > Export > Presets > Android (add it if you haven't arleady),
Options tab > scroll down to Permissions,
Scroll all the way down to "Set Orientation".

One forum post mentions Project > Export > Android > Options > Orientation > Portrait
but I can't find this option on Godot 3.3.2
https://godotengine.org/qa/90823/portrait-game-mode-for-android?show=90823#q90823

by (24 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.