Android Orientation Porblem when launching APK from a third party platform

Discussion in 'Legacy GameMaker Community Tech Support' started by DBabicius, Dec 7, 2018.

Tags:
  1. DBabicius

    DBabicius Member

    Joined:
    Sep 14, 2016
    Posts:
    20
    Hello, fellow Game Maker developers!

    I would like to ask for your help, since I'm facing quite a peculiar problem. The thing is, I'm currently preparing to launch my game on a new Android-related store/platform that is separate from Google Play. The platform is essentially a service that the user may download and then access various free and premium games through it. Due to the conditions of the contract I cannot disclose any further info nor can I have a better look at the inside of the said platform's code, but I'll try to briefly describe the issue to see if anybody faced an analogical problem under other circumstances.

    My game is portrait oriented (which is set in Global Options). And when I launch the game through the platform, I get this:

    upload_2018-12-7_17-23-8.png

    As you see, the orientation changes from portrait, to sort of portrait-on-landscape. This is especially strange bearing in mind that the game launches perfectly when just copied directly to a folder on a phone. Any ideas what may cause such a bug or how one should go about fixing it?
     
  2. DBabicius

    DBabicius Member

    Joined:
    Sep 14, 2016
    Posts:
    20
    I guess people haven't encountered this problem, or maybe I'm just too stingy with the info, so in any case I'm adding how the global settings for my Android look:

    https://imgur.com/a/qvAwP5M

    Could it be that the issue lies there?
     
  3. SnotWaffle Studios

    SnotWaffle Studios Member

    Joined:
    Jun 21, 2016
    Posts:
    268
    You have "Keep aspect ratio" checked, which will add black bars on the sides or top depending on the device width and height. So if you're viewing your game on your computer, it will look like your screenshot. Are you saying that opening your game in their platform on a phone is causing it to twist to landscape orientation?
     
  4. DBabicius

    DBabicius Member

    Joined:
    Sep 14, 2016
    Posts:
    20
    Thank you so much for noticing! I somehow managed to overlook the "Keep aspect ratio" checkbox. Yes, apparently viewing the application on their platform causes it to twist to landscape despite the portrait being chosen in Global Game Settings, at least this is what I'm being reported. Though perhaps the "Keep aspect ratio" checkbox caused it. I reckon I'll send them a new build with "Full scale" instead of "Keep aspect ratio" chosen - maybe it will fix the issue :/
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice