why is the game screen upside down after exporting to android?

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

The places of the buttons and those of the touch parts which trigger things do not match.

There is a loading error : “unable to write to file …tmp_templates.tpz, file in use, locked or lacking permissions” after trying to to install the export template manager. Is that related to this error?

or I have a warning that the jar will be treated as unsigned for it’s signed with a weak algorithm… What does this mean? Is this the problem? how to fix it?

“unable to write to file …tmp_templates.tpz, file in use, locked or lacking permissions”

lol this problems happens here too? Are you on Windows? It’s an insanely annoying issue reported here (although solved in master it seems): Unable to write to file xxxx file in use, locked or lacking permissions (Windows 10) · Issue #16274 · godotengine/godot · GitHub and one way to not have it happen is to disable your antivirus.

However I’m not sure it relates to your screen being upside down.
If you can reproduce this problem 100% with a test project, you could report an issue on Github by specifying your Android model, Godot version and logs.

Zylann | 2018-06-07 12:50

:bust_in_silhouette: Reply From: Nuno Lopes

I know that almost a year as passed since this thread was created but it’s still very relevant.

I can feel your pain with the upside down export to Android issue. It has been happening to me since Godot 3 beta. It was working fine with previous versions. I’ve just downloaded Godot 3.1.1 and installed the respective Export Templates but still no luck. It keeps exporting my apps upside down.

I can’t tell about the touch inputs yet, as my test app didn’t have any, but I do totally understand your complaint about the touch inputs not matching the position of the buttons on the screen. It has been happening to me as well, since Godot 3. It seems that the touch inputs were in the correct positions, behaving as intended, while the screen is displayed rotated by 180 degrees.

It is very frustrating and it seems the problem persists. It makes me believe that there aren’t many people having this issue and that it might be a mobile device compatibility problem and not as much an export issue.

I’m still after a solution for this but In the meanwhile I thought I would share my issue experience with the community so they know their not alone. For a long time I thought I was the only one having this issue.

Thanks skang1 for starting this thread. I should have done it myself too, quite a while ago.

I’m using my Samsung S4 Active as my target device, by the way.

Confirmed. I just created a texture button, re-exported my app to Android and tried it again on my Samsung S4 Active. Even though the touch input is behaving correctly, the screen is displaying upside down, as it has been happening to me since Godot 3 beta. That said, it doesn’t work when I tap the button as it should be, but when I tap it’s imaginary position as if it was rotated by 180 degrees, if that makes sense.

Furthermore, my assumption towards a mobile device compatibility problem instead of an export to Android issue is apparently correct. In addition to my mobile, I also installed my exported APK file on my wife’s mobile and everything seems to be working just fine, as intended. The screen is displaying correctly as well as the touch input is working properly when I tap the button position on the screen, as it’s meant to be.

I hope this can be helpful to someone having the same annoying issue.

Nuno Lopes | 2019-06-09 01:15