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

Get help using Construct 2

Post » Sat Jun 07, 2014 4:10 am

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
B
9
S
2
Posts: 30
Reputation: 651

Post » Sat Jun 07, 2014 6:54 am

1:use crop not Letterbox scale, Scale inner and Scale outer
2:use viewport not screenhight/planform
3:anchor is good
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Sat Jun 07, 2014 7:36 am

fongka2 wrote: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?
B
9
S
2
Posts: 30
Reputation: 651

Post » Sat Jun 07, 2014 10:44 am

try to use the maximum widow size, it's better than all.
big size will scaled better.
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778

Post » Sun Jun 08, 2014 4:30 am

IncentiveGames wrote:
fongka2 wrote: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 @planfrom/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
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Sun Jun 08, 2014 3:36 pm

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.
B
9
S
2
Posts: 30
Reputation: 651

Post » Sun Jun 08, 2014 11:14 pm

B
13
S
2
Posts: 11
Reputation: 786


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 44 guests