Best resolution for all the phones

Discussion and feedback on Construct 2

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

Post » Tue Mar 20, 2012 7:09 pm

Here's an example capx I made:

http://dl.dropbox.com/u/53898431/Junk/Universal_Device_Example.capx

I use anchor behaviour to strech the background sprite. I hope it helps.
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Tue Mar 20, 2012 8:11 pm

Thank you!

Definitely a step in the direction with that example. I've managed to apply this to my game and get the background to stretch to fit multiple screen sizes.

Very much appreciated @nemo

Is it possible to resize/reposition the the objects to keep them in proportion with the background so the game basically looks the same on all devices. At the minute the background will stretch which is great, but on a large screen it leaves the objects looking offset to their preferred original position.


For anyone interested, I had to run it through phonegap for me to check that it resulted in what I needed, so here's the apk of nemos example if anyone cares to check if it fits their screensize, out of curiosity.

http://dl.dropbox.com/u/44025915/C2-UniversalScreenTest.apkFredQ2012-03-20 20:37:30
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Tue Mar 20, 2012 9:31 pm

[QUOTE=ranma]on start of layout I create some helper global variables (like X position of left and right screen edges, Y position of top and bottom edges) and reposition + scale all objects according to them manually on creation or start of layout, depending when they are created.[/QUOTE]

@ramna

Sorry to bring this up again but as the ball is rolling here I thought it best to keep it all within the one topic.

Is there anyway you could elaborate a bit more on what you had said here? Possibly update the capx example already created if you get a minute? It really would be a great help.
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Wed Mar 21, 2012 11:07 am

@Thunder please stop posting points
For Fred , try to make layout 1440 , 960 and checking crop mode
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Wed Mar 21, 2012 3:19 pm

@FredQ: I think the problem is your aspect ratios are different. To make an obvious example: suppose your layout is square at 400x400 with a background image the same size, and you export with scaling enabled to a phone with a display that is 800x600. Construct 2 will only resize the image proportionally up to 600x600, leaving 100px gaps to the sides. Depending on your settings (if you followed the 'clear background' mobile optimisations) you might get a weird glitchy appearance in the gaps too. So you have to design your background images to be large enough to cover all aspect ratios too.

It's the same problem as faced by TV and film: lots of shows have to be filmed in such a way as to look good on both 4:3 screens and 16:9 screens. This means avoiding things like actors or important events being shown right at the edge of the 16:9 view, since they will be cropped and invisible on 4:3. I think this is the same problem you face with your game.

@Thunder what's going on?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Post » Wed Mar 21, 2012 5:15 pm

I did get this working! If you use the scale mode, it'll fill out to whatever height your view window, but add more to the sides. Seems to work well for any resolution.

It's better to use a 4:3 aspect ratio so that slightly more of your layout shows in widescreen. But make sure your layout has more padding built in to show if they have a wider screen. (Similar to a "bleed" if you're familiar with print graphic design.)

Aspect ratio seems more important to construct than resolution
B
19
S
2
Posts: 37
Reputation: 1,464

Post » Mon Jul 01, 2013 6:04 am

Hello, Ashely here follows a file CAPX following more or less what you said, I wish you could help me, I want to know if the file so will run on all dispostivos androids, say all resolutions here's the link to the dropbox: https://www.dropbox.com/s/kopan4yyzibtq40/test.capx?m
B
11
Posts: 16
Reputation: 449

Post » Mon Jul 01, 2013 9:44 am

Crop will just show more of the level on different screens, it won't try to keep it to scale.
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Wed Nov 13, 2013 2:19 pm

@nemo @fredQ please it seems these files have been removed
B
15
S
4
Posts: 138
Reputation: 2,003

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: glerikud, Yahoo [Bot] and 6 guests