Best resolution for all the phones

Discussion and feedback on Construct 2

Post » Tue Mar 20, 2012 4:15 pm

Just to reiterate, @lucid's link covers everything you should need to know. You should never use a fixed window size for mobile - almost every device has a different screen resolution. Even different kinds of iPhone and now different kinds of iPads have different resolutions!

@FredQ, I thought it was relatively straightforward to implement the things in that tutorial. Can you summarise what you're having trouble with?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Mar 20, 2012 5:07 pm

.Thunder2012-03-21 05:37:06
B
5
S
2
G
5
Posts: 26
Reputation: 2,987

Post » Tue Mar 20, 2012 5:31 pm

If you want to strech background image you should make sure that the background origin is set to top left corner and then if you export with unversal device option set to on. When the user is tilting their devices the image should automaticly adjust to different size.nemo2012-03-20 23:17:15
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Tue Mar 20, 2012 5:33 pm

@Ashley, ye here's a quick summary of the issue:


My game is set to 800,480... When on Fullscreen (scale) mode, it still ends up looking like this.

Here are the screenshots:






So to me, it doesn't appear to have been scaled. I know that I could implement fixes such as a top layer to act as a boarder, or create the game to extend slightly over the layout size to close the gap/cover the black space. But, these are fixes and not solutions. I was just wondering where I'm going wrong.

As I said earlier everyone I've spoken to has had to implement other events, code changes to the html etc to get it working on multiple screen sizes. I've not seen one person say that they have managed to make an app compatible with multiple screen sizes by just following that tutorial.

So I'm open to all ideas and offers of help but can assure you I have read all the approriate tutorials lol FredQ2012-03-20 17:36:36
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Tue Mar 20, 2012 5:41 pm

[QUOTE=FredQ] @Ashley, ye here's a quick summary of the issue:


My game is set to 800,480... When on Fullscreen (scale) mode, it still ends up looking like this.

Here are the screenshots:






So to me, it doesn't appear to have been scaled. I know that I could implement fixes such as a top layer to act as a boarder, or create the game to extend slightly over the layout size to close the gap/cover the black space. But, these are fixes and not solutions. I was just wondering where I'm going wrong.

As I said earlier everyone I've spoken to has had to implement other events, code changes to the html etc to get it working on multiple screen sizes. I've not seen one person say that they have managed to make an app compatible with multiple screen sizes by just following that tutorial.

So I'm open to all ideas and offers of help but can assure you I have read all the approriate tutorials lol [/QUOTE]

If you are using picture as a background have you checked that the origin is in the top left corner? Would this help?nemo2012-03-20 17:42:21
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Tue Mar 20, 2012 5:58 pm

I've just checked and can confirm, it's set to top-left for the origin so it's not that
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Tue Mar 20, 2012 6:05 pm

FredQ I wonder if your problem happens after you package it using phonegap/appmobi.

Have you tried to simply play it using your mobile browser ? (iPhone/Android browser), is the FullScreen (scale) still broken on the mobile browser too ?
B
34
S
13
G
8
Posts: 134
Reputation: 8,118

Post » Tue Mar 20, 2012 6:19 pm

Ye tried that too, it looks even worse lol




Can anyone throw together a very basic capx of a project that is setup to support multiple screen sizes on mobile devices so I can compare and see what I'm missing because by the sounds of things there are a couple key events that others are including to aid in the positioning of things that seem to fix it.FredQ2012-03-20 18:24:17
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Tue Mar 20, 2012 6:19 pm

@FredQ it looks like the background image is just not quite big enough, are you sure scaling is on and it's sized big enough to cover all aspect ratios? Also, the tiling effect looks like an old bug which was fixed, are you using the latest release of C2?Ashley2012-03-20 18:20:07
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Mar 20, 2012 6:28 pm

Yep, just exported with the latest update now so not sure about the tiling appearance.

I can confirm scaling is 100% definitely on.

What exactly do you mean about the background image being big enough? It fits my layout perfectly in C2. I thought scaling just stretched the images to fit?

Are you saying my background should be bigger than the layout to accommodate the multiple resolutions? If that's the case then it won't look the same from device to device with the hills and the sun etc.

My apologies if I'm completely missing something here lol.FredQ2012-03-20 18:29:31
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests