How do I make the window size to fit iPhone 4/4S/5 sizes?

0 favourites
  • 7 posts
From the Asset Store
Get Ready for the New Wave of "Bottom Screen" Games!
  • Hello everyone. I have read many tutorials around how can my window size be fit in multiple screen sizes but none of them has worked so far.

    My current window size is 640x1136 (iPhone 5/5C/5S screen resolution). When I transfer it to Xcode or Screenfly and I try to scale it to iPhone 4/4S resolution (640x960), black lines appear on the left and right corner.

    Similar thing happens with the exact opposite window sizes. I tried window size of 640x960 hoping that it will stretch and fit the 640x1136 resolution but in this case black lines appear on the top and bottom of the screen.

    I am running out of options now. I tried Letterbox scale, Scale inner and Scale outer. None of them has resolved my problem thus far.

    Please help me make my game fit these two sizes.

    P.S. I am using 800 x 1200 as Layout size

  • 1:use crop not Letterbox scale, Scale inner and Scale outer

    2:use viewport not screenhight/planform

    3:anchor is good

  • 1:use crop not Letterbox scale, Scale inner and Scale outer

    2:use viewport not screenhight/planform

    3:anchor is good

    Are you sure that Crop is the way to go? Because it doesn't really seem to work out well for me.

    Also, where do I find the Viewport and Anchor? Are these system expressions or a configuration options?

  • try to use the maximum widow size, it's better than all.

    big size will scaled better.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • > 1:use crop not Letterbox scale, Scale inner and Scale outer

    > 2:use viewport not screenhight/planform

    > 3:anchor is good

    >

    Are you sure that Crop is the way to go? Because it doesn't really seem to work out well for me.

    Also, where do I find the Viewport and Anchor? Are these system expressions or a configuration options?

    Viewport system expressions

    Anchor /pin/bullet

    -----

    Viewport is the only way you can make your game fit all of drvice/screen

    Make your UI likethis

    Set button.width=viewportright(0)>viewportbottom(0)?viewportright(0)/10:viewportright(0)/5

    Set button.x=viewportright(0)>viewportbottom(0)?viewportright(0)/10:viewportright(0)/5

    Then your game will fit mobile and PC

  • Alright, I fixed the problem without any viewport, anchor and such. Although, for some projects these may be required but personally I haven't tried them. I will make a tutorial this week and post it so stay tuned.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)